prettier, update to the dependencies (latest), remove nip26 and its artifacts, cleanup and renew
This commit is contained in:
@@ -2,13 +2,20 @@ function show(platform, enabled, useSettingsInsteadOfPreferences) {
|
||||
document.body.classList.add(`platform-${platform}`);
|
||||
|
||||
if (useSettingsInsteadOfPreferences) {
|
||||
document.getElementsByClassName('platform-mac state-on')[0].innerText = "Nostore’s extension is currently on. You can turn it off in the Extensions section of Safari Settings.";
|
||||
document.getElementsByClassName('platform-mac state-off')[0].innerText = "Nostore’s extension is currently off. You can turn it on in the Extensions section of Safari Settings.";
|
||||
document.getElementsByClassName('platform-mac state-unknown')[0].innerText = "You can turn on Nostore’s extension in the Extensions section of Safari Settings.";
|
||||
document.getElementsByClassName('platform-mac open-preferences')[0].innerText = "Quit and Open Safari Settings…";
|
||||
document.getElementsByClassName('platform-mac state-on')[0].innerText =
|
||||
'Nostore’s extension is currently on. You can turn it off in the Extensions section of Safari Settings.';
|
||||
document.getElementsByClassName('platform-mac state-off')[0].innerText =
|
||||
'Nostore’s extension is currently off. You can turn it on in the Extensions section of Safari Settings.';
|
||||
document.getElementsByClassName(
|
||||
'platform-mac state-unknown'
|
||||
)[0].innerText =
|
||||
'You can turn on Nostore’s extension in the Extensions section of Safari Settings.';
|
||||
document.getElementsByClassName(
|
||||
'platform-mac open-preferences'
|
||||
)[0].innerText = 'Quit and Open Safari Settings…';
|
||||
}
|
||||
|
||||
if (typeof enabled === "boolean") {
|
||||
if (typeof enabled === 'boolean') {
|
||||
document.body.classList.toggle(`state-on`, enabled);
|
||||
document.body.classList.toggle(`state-off`, !enabled);
|
||||
} else {
|
||||
@@ -18,7 +25,9 @@ function show(platform, enabled, useSettingsInsteadOfPreferences) {
|
||||
}
|
||||
|
||||
function openPreferences() {
|
||||
webkit.messageHandlers.controller.postMessage("open-preferences");
|
||||
webkit.messageHandlers.controller.postMessage('open-preferences');
|
||||
}
|
||||
|
||||
document.querySelector("button.open-preferences").addEventListener("click", openPreferences);
|
||||
document
|
||||
.querySelector('button.open-preferences')
|
||||
.addEventListener('click', openPreferences);
|
||||
|
||||
Reference in New Issue
Block a user