mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 23:36:16 -04:00
Accessibility checks are now made before trying to access local storage. Fixes #174.
This commit is contained in:
parent
c60ec7c170
commit
e2cae035f2
5 changed files with 66 additions and 12 deletions
|
@ -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 = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue