Merge pull request #979 from friday/respect-storage

Respect storage being disabled for storage getter
This commit is contained in:
Sam Potts 2018-05-28 10:09:02 +10:00 committed by GitHub
commit e9684c2021
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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