If storage is disabled, disable get as well, not just set
This commit is contained in:
parent
cd51788b98
commit
6391ced99f
@ -31,7 +31,7 @@ class Storage {
|
||||
}
|
||||
|
||||
get(key) {
|
||||
if (!Storage.supported) {
|
||||
if (!Storage.supported || !this.enabled) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user