Accessibility checks are now made before trying to access local storage. Fixes #174.
This commit is contained in:
1 parent
c60ec7c170
commit
e2cae035f2
5 files changed
+66
-12
No files matched your search
@@ -35,7 +35,11 @@
|
||||
"use strict";
|
||||
|
||||
// Load theme before the preloader is shown
|
||||
document.querySelector(":root").className = (JSON.parse(localStorage.getItem("options")) || {}).theme;
|
||||
try {
|
||||
document.querySelector(":root").className = (JSON.parse(localStorage.getItem("options")) || {}).theme;
|
||||
} catch (err) {
|
||||
// LocalStorage access is denied by security settings
|
||||
}
|
||||
|
||||
// Define loading messages
|
||||
const loadingMsgs = [
|
||||
|
||||
Reference in new issue
Block a user