getting rid of localstorage for display format
This commit is contained in:
parent
7879c6918e
commit
87e82bb2b8
@ -1563,7 +1563,6 @@ let bottomRowText = document.querySelector("#bottom-row-text");
|
||||
|
||||
displayFormatBtn.addEventListener("click", () => {
|
||||
selectedDisplayText.innerText = displayFormatDropDown.value;
|
||||
localStorage.setItem("displayFormat", displayFormatDropDown.value);
|
||||
if (selectedDisplayText.innerText === "Professional Two Rows") {
|
||||
topRowText.style.display = "inline";
|
||||
bottomRowText.style.display = "inline";
|
||||
@ -1588,7 +1587,6 @@ let resetSettingsBtn = document.querySelector("#reset-btn")
|
||||
|
||||
resetSettingsBtn.addEventListener("click", () => {
|
||||
selectedDisplayText.innerText = "Standard Scrolling";
|
||||
localStorage.setItem("displayFormat", "Standard Scrolling");
|
||||
topRowText.style.display = "none";
|
||||
bottomRowText.style.display = "none";
|
||||
secondRow.style.display = "none";
|
||||
@ -1685,8 +1683,8 @@ window.onload = () => {
|
||||
//getWifiPass && (wifiPassInput.value = getWifiPass);
|
||||
//getCountryCode && (countryCodeInput.value = getCountryCode);
|
||||
|
||||
let getDispayFormat = localStorage.getItem("displayFormat");
|
||||
getDispayFormat && (displayFormatDropDown.value = getDispayFormat);
|
||||
// let getDispayFormat = localStorage.getItem("displayFormat");
|
||||
// getDispayFormat && (displayFormatDropDown.value = getDispayFormat);
|
||||
selectedDisplayText.innerText = displayFormatDropDown.value;
|
||||
|
||||
// getInputAnimation && (inputAnimation.value = getInputAnimation);
|
||||
|
Loading…
Reference in New Issue
Block a user