diff --git a/src/keyseq.ts b/src/keyseq.ts index 23b0ea11..5ed381db 100644 --- a/src/keyseq.ts +++ b/src/keyseq.ts @@ -300,11 +300,6 @@ export function mapstrMapToKeyMap(mapstrMap: Map): KeyMap { return newKeyMap } -export function mapstrObjToKeyMap(mapstrObj): KeyMap { - const mapstrMap = new Map(Object.entries(mapstrObj)) - return mapstrMapToKeyMap(mapstrMap) -} - // }}} // {{{ Utility functions for dealing with KeyboardEvents diff --git a/src/newtab.ts b/src/newtab.ts index 8cd17eb9..03f9ea04 100644 --- a/src/newtab.ts +++ b/src/newtab.ts @@ -10,7 +10,7 @@ function getChangelogDiv() { function updateChangelogStatus() { const changelogDiv = getChangelogDiv() const changelogContent = changelogDiv.textContent - if (localStorage.changelogContent == changelogContent) { + if (localStorage["changelogContent"] == changelogContent) { const changelogButton = document.querySelector('input[id^="spoiler"]') if (!changelogButton) { console.error("Couldn't find changelog button!") @@ -22,7 +22,7 @@ function updateChangelogStatus() { function readChangelog() { const changelogDiv = getChangelogDiv() - localStorage.changelogContent = changelogDiv.textContent + localStorage["changelogContent"] = changelogDiv.textContent updateChangelogStatus() }