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

@@ -132,6 +132,9 @@ GuacamoleHistory = new (function() {
*/
this.onchange = null;
// Reload when modified
window.addEventListener("storage", guac_history.reload);
// Initial load
guac_history.reload();