From 57ced201ebbe6ccabcbdd14812254332e26bd51e Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Mon, 15 May 2017 12:52:54 -0300 Subject: [PATCH] WebStorage events --- client/coral-framework/helpers/storage.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/client/coral-framework/helpers/storage.js b/client/coral-framework/helpers/storage.js index 83d7cc41c..5a1620291 100644 --- a/client/coral-framework/helpers/storage.js +++ b/client/coral-framework/helpers/storage.js @@ -82,7 +82,8 @@ export function clear() { } } -window.addEventListener('storage', function(e) { - const msg = `${e.key} " was changed in page ${e.url} from ${e.oldValue} to ${e.newValue}`; - console.log(msg); -}); +// Enable this to debug WEB Storage events +// window.addEventListener('storage', function(e) { +// const msg = `${e.key} " was changed in page ${e.url} from ${e.oldValue} to ${e.newValue}`; +// console.log(msg); +// });