mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 17:41:40 -05:00
Fix code bugs introduced by the 3.0.1 upgrade.
- Use a different object notation in newtab.ts to stop nagging. - Remove unused function from src/keyseq.ts.
This commit is contained in:
parent
77f6008259
commit
0192fecfe2
2 changed files with 2 additions and 7 deletions
|
@ -300,11 +300,6 @@ export function mapstrMapToKeyMap(mapstrMap: Map<string, MapTarget>): KeyMap {
|
|||
return newKeyMap
|
||||
}
|
||||
|
||||
export function mapstrObjToKeyMap(mapstrObj): KeyMap {
|
||||
const mapstrMap = new Map(Object.entries(mapstrObj))
|
||||
return mapstrMapToKeyMap(mapstrMap)
|
||||
}
|
||||
|
||||
// }}}
|
||||
|
||||
// {{{ Utility functions for dealing with KeyboardEvents
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue