browser-extension-settings 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/settings.ts +8 -0
- package/package.json +1 -1
package/lib/settings.ts
CHANGED
|
@@ -455,6 +455,12 @@ function addCommonSettings(settingsTable: SettingsTable) {
|
|
|
455
455
|
}
|
|
456
456
|
}
|
|
457
457
|
|
|
458
|
+
function handleShowSettingsUrl() {
|
|
459
|
+
if (location.hash === "#bes-show-settings") {
|
|
460
|
+
setTimeout(showSettings, 100)
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
|
|
458
464
|
export async function showSettings() {
|
|
459
465
|
const settingsContainer = getSettingsContainer()
|
|
460
466
|
|
|
@@ -488,4 +494,6 @@ export const initSettings = async (options: SettingsOptions) => {
|
|
|
488
494
|
initExtensionList()
|
|
489
495
|
addSideMenu()
|
|
490
496
|
})
|
|
497
|
+
|
|
498
|
+
handleShowSettingsUrl()
|
|
491
499
|
}
|