Merge pull request #669 from Hongarc/fix/storage

fix: keep `localStorage`
This commit is contained in:
Peter Cottle 2020-03-30 08:11:03 -07:00 committed by GitHub
commit 21a479578e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -35,6 +35,8 @@ if (!util.isBrowser()) {
return keys[i] || null;
}
};
} else {
var localStorage = window.localStorage;
}
try {