Update utils.js

This commit is contained in:
Silver Kuusik 2018-10-11 10:21:25 +02:00 committed by GitHub
parent 782935644d
commit 661c0134bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ function getLocalStorageItem(item) {
try {
return localStorage.getItem(item);
// Failed to access localStorage
} catch {
} catch(err) {
// Return empty result
return "";
}
@ -20,5 +20,5 @@ function setLocalStorageItem(item, value) {
try {
localStorage.setItem(item, value)
// Failed to access localStorage
} catch {}
} catch(err) {}
}