If storage is disabled, disable get as well, not just set

This commit is contained in:
Albin Larsson 2018-05-27 05:48:38 +02:00
parent cd51788b98
commit 6391ced99f

View File

@ -31,7 +31,7 @@ class Storage {
}
get(key) {
if (!Storage.supported) {
if (!Storage.supported || !this.enabled) {
return null;
}