document.getElementById('noVNC_status').classList.remove("noVNC_open");
},
- notification: function (rfb, msg, level, options) {
+ notification: function (rfb, msg, level) {
UI.showStatus(msg, level);
},
* Send a notification to the UI. Valid levels are:
* 'normal'|'warn'|'error'
*
- * NOTE: Options could be added in the future.
* NOTE: If this function is called multiple times, remember that the
* interface could be only showing the latest notification.
*/
- _notification: function(msg, level, options) {
+ _notification: function(msg, level) {
switch (level) {
case 'normal':
case 'warn':
return;
}
- if (options) {
- this.onnotification(this, msg, level, options);
- } else {
- this.onnotification(this, msg, level);
- }
+ this.onnotification(this, msg, level);
},
_setCapability: function (cap, val) {
- `"warn"`
- `"error"`
-**`options`** is currently unused.
-
##### Syntax
- RFB.onnotification = function(rfb, msg, level, options) { ... }
+ RFB.onnotification = function(rfb, msg, level) { ... }
#### RFB.ondisconnected
status(reason, "error");
}
}
- function notification(rfb, msg, level, options) {
+ function notification(rfb, msg, level) {
status(msg, level);
}