Skip to content

Commit e7d8d2c

Browse files
committed
correct the param of querySelector
1 parent 4929107 commit e7d8d2c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

GitHub One Monokai/Resources/Script.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@ function show(enabled: any, useSettingsInsteadOfPreferences: boolean) {
22
if (useSettingsInsteadOfPreferences) {
33
let querySelector = document.querySelector;
44

5-
querySelector<HTMLElement>("state-on").innerText =
5+
querySelector<HTMLElement>(".state-on").innerText =
66
"Status: Enabled";
7-
querySelector<HTMLElement>("state-off").innerText =
7+
querySelector<HTMLElement>(".state-off").innerText =
88
"Status: Disabled";
9-
querySelector<HTMLElement>("state-unknown").innerText =
9+
querySelector<HTMLElement>(".state-unknown").innerText =
1010
"You can turn on GitHub One Monokai’s extension in the Extensions section of Safari Settings.";
11-
querySelector<HTMLElement>("open-preferences").innerText =
11+
querySelector<HTMLElement>(".open-preferences").innerText =
1212
"Open in Safari Settings…";
13+
1314
}
1415

1516
if (typeof enabled === "boolean") {

0 commit comments

Comments
 (0)