| 219 | |
| 220 | //change values according to storage items |
| 221 | function checkLocalStorageAndChange() { |
| 222 | if (localbackgroundColor && localcolor && localtextColor && localtextContrastColor) { |
| 223 | backgroundColor = localbackgroundColor; |
| 224 | color = localcolor; |
| 225 | textColor = localtextColor; |
| 226 | textContrastColor = localtextContrastColor; |
| 227 | changeAll(); |
| 228 | defaultTheme = false; |
| 229 | } else { |
| 230 | defaultTheme = true; |
| 231 | } |
| 232 | } |
| 233 | |
| 234 | function checkAudioSetting() { |
| 235 | if (JSON.parse(localStorage.getItem("audioStatus")) == false) { |