From 6391ced99f27f2b14f8c77c6657926a0012a2a69 Mon Sep 17 00:00:00 2001 From: Albin Larsson Date: Sun, 27 May 2018 05:48:38 +0200 Subject: [PATCH] If storage is disabled, disable get as well, not just set --- src/js/storage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/storage.js b/src/js/storage.js index 5b914331..e4dc9e1b 100644 --- a/src/js/storage.js +++ b/src/js/storage.js @@ -31,7 +31,7 @@ class Storage { } get(key) { - if (!Storage.supported) { + if (!Storage.supported || !this.enabled) { return null; }