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.
Files changed (2) hide show
  1. package/lib/settings.ts +8 -0
  2. 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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "browser-extension-settings",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Settings module for developing browser extensions and userscripts",
5
5
  "type": "module",
6
6
  "main": "./lib/index.ts",