MCPcopy Create free account
hub / github.com/Milkyroad/SCiPNET / checkLocalStorageAndChange

Function checkLocalStorageAndChange

public/src/js/script.js:221–232  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

219
220//change values according to storage items
221function 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
234function checkAudioSetting() {
235 if (JSON.parse(localStorage.getItem("audioStatus")) == false) {

Callers 1

script.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected