Browse Source

changed script name in places where it was missing

master
Haku 3 years ago
parent
commit
60316b7821
3 changed files with 4 additions and 4 deletions
  1. +1
    -1
      build/manifest.json
  2. +2
    -2
      src/buttons.ts
  3. +1
    -1
      src/settings.ts

+ 1
- 1
build/manifest.json View File

@@ -22,7 +22,7 @@
"js": ["scripts/helpers.js", "scripts/main.js"] "js": ["scripts/helpers.js", "scripts/main.js"]
}, },
{ {
"matches": ["https://www.nationstates.net/page=blank/raspberry=settings"],
"matches": ["https://www.nationstates.net/page=blank/gauntlet=settings"],
"exclude_matches": ["https://forum.nationstates.net/*"], "exclude_matches": ["https://forum.nationstates.net/*"],
"run_at": "document_idle", "run_at": "document_idle",
"js": ["scripts/settings.js"] "js": ["scripts/settings.js"]


+ 2
- 2
src/buttons.ts View File

@@ -12,7 +12,7 @@ function addButton(label: string, callback: (e: MouseEvent) => void)
document.querySelector('#loginswitcher').parentNode.insertBefore(belDiv, document.querySelector('#loginswitcher')); document.querySelector('#loginswitcher').parentNode.insertBefore(belDiv, document.querySelector('#loginswitcher'));
} }


addButton('Raspberry Settings', (e: MouseEvent): void =>
addButton('Gauntlet Settings', (e: MouseEvent): void =>
{ {
window.location.href = '/page=blank/raspberry=settings';
window.location.href = '/page=blank/gauntlet=settings';
}); });

+ 1
- 1
src/settings.ts View File

@@ -1,4 +1,4 @@
document.querySelector('#content').innerHTML = `<h1>Raspberry Settings</h1>
document.querySelector('#content').innerHTML = `<h1>Gauntlet Settings</h1>
<fieldset> <fieldset>
<legend>Keys</legend> <legend>Keys</legend>
<table> <table>


Loading…
Cancel
Save