Use onstorage event - don't poll. Increase screenshot frequency to one second.

This commit is contained in:
Michael Jumper
2012-11-07 10:15:01 -08:00
parent 3b3f213c6d
commit d1aeb5e347
4 changed files with 7 additions and 14 deletions

View File

@@ -323,12 +323,6 @@ GuacamoleRootUI.reset = function() {
GuacamoleRootUI.views.login.style.display = "none";
GuacamoleRootUI.views.connections.style.display = "";
// Reload history every 5 seconds
window.setInterval(GuacamoleHistory.reload, 5000);
// Reload history when focus gained
window.onfocus = GuacamoleHistory.reload;
};
GuacamoleHistory.onchange = function(id, old_entry, new_entry) {