mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-10 23:21:21 +00:00
Use onstorage event - don't poll. Increase screenshot frequency to one second.
This commit is contained in:
@@ -98,12 +98,9 @@ function GuacamoleSessionState() {
|
||||
*/
|
||||
this.onchange = null;
|
||||
|
||||
// Reload properties every second
|
||||
window.setInterval(guac_state.reload, 1000);
|
||||
// Reload when modified
|
||||
window.addEventListener("storage", guac_state.reload);
|
||||
|
||||
// Reload properties when focus is gained
|
||||
window.addEventListener("focus", guac_state.reload);
|
||||
|
||||
// Initial load
|
||||
guac_state.reload();
|
||||
|
||||
|
Reference in New Issue
Block a user