Remove RFB.notification()

This interface was a band aid for poor design. The two cases where it
was used was replaced by logging.
This commit is contained in:
Samuel Mannehed
2017-11-05 21:47:06 +01:00
parent 4e1c5435b8
commit 5b20d338ce
8 changed files with 7 additions and 114 deletions

View File

@@ -188,9 +188,6 @@
status(e.detail.reason, "error");
}
}
function notification(e) {
status(e.detail.message, e.detail.level);
}
window.onresize = function () {
// When the window has been resized, wait until the size remains
@@ -272,8 +269,7 @@
{ repeaterID: WebUtil.getConfigVar('repeaterID', ''),
shared: WebUtil.getConfigVar('shared', true),
credentials: { password: password } });
rfb.viewOnly = WebUtil.getConfigVar('view_only', false);
rfb.addEventListener("notification", notification);
rfb.viewOnly = WebUtil.getConfigVar('view_only', false);
rfb.addEventListener("updatestate", updateState);
rfb.addEventListener("disconnect", disconnect);
rfb.addEventListener("capabilities", function () { updatePowerButtons(); initialResize(); });