From a729812b2601bf69dc7fe1c4edd8edda842333db Mon Sep 17 00:00:00 2001 From: Daniel Henrique Barboza Date: Thu, 23 Mar 2017 09:34:51 -0300 Subject: [PATCH] Removing sessionStorage call in wok.main.js sessionStorage was being used in early versions of the websocket notifications implementation to avoid opening multiple connections, before the current single permanent connection approach was implemented. If the 'wokNotificationWebSocket' key existed in the sessionStorage, we skipped the opening of a new websocket. This patch removes the sessionStorage usage because it accomplishes nothing in current code. No verification is made using the created 'wokNotificationWebSocket' session key in the code. Signed-off-by: Daniel Henrique Barboza --- ui/js/src/wok.main.js | 1 - 1 file changed, 1 deletion(-) diff --git a/ui/js/src/wok.main.js b/ui/js/src/wok.main.js index 26dc723f9..411b05e44 100644 --- a/ui/js/src/wok.main.js +++ b/ui/js/src/wok.main.js @@ -69,7 +69,6 @@ wok.startNotificationWebSocket = function () { } }; - sessionStorage.setItem('wokNotificationWebSocket', 'true'); var heartbeat = setInterval(function() { wok.notificationsWebSocket.send(window.btoa('heartbeat')); }, 30000);