@vacantthinker/firefox-addon-framework-easy 2026.609.557 → 2026.609.1038
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/README.md +2 -0
- package/package.json +1 -1
- package/src/browserRuntime.js +9 -0
- package/src/opTab.js +1 -1
package/README.md
CHANGED
|
@@ -49,6 +49,8 @@ export async function browserRuntimeSetUninstallURL(
|
|
|
49
49
|
|
|
50
50
|
export function browserRuntimeOnUpdateAvailable(doWhat = null) { }
|
|
51
51
|
|
|
52
|
+
export function browserRuntimeGetURL(path) { }
|
|
53
|
+
|
|
52
54
|
export function browserRuntimeGeckoId() { }
|
|
53
55
|
|
|
54
56
|
export async function browserRuntimePlatformInfo() { }
|
package/package.json
CHANGED
package/src/browserRuntime.js
CHANGED
|
@@ -24,6 +24,15 @@ export function browserRuntimeOnUpdateAvailable(doWhat = null) {
|
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @param path{string}
|
|
30
|
+
* @returns {string}
|
|
31
|
+
*/
|
|
32
|
+
export function browserRuntimeGetURL(path) {
|
|
33
|
+
return browser.runtime.getURL(path);
|
|
34
|
+
}
|
|
35
|
+
|
|
27
36
|
/**
|
|
28
37
|
* @returns {browser._manifest.ExtensionID}
|
|
29
38
|
*/
|
package/src/opTab.js
CHANGED
|
@@ -114,7 +114,7 @@ export async function tabOpQueryUrlThenRemove(urlQuery) {
|
|
|
114
114
|
* @returns {Promise<void>}
|
|
115
115
|
*/
|
|
116
116
|
export async function tabOpReload(tabId) {
|
|
117
|
-
await browser.tabs.reload(tabId
|
|
117
|
+
await browser.tabs.reload(tabId);
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
/**
|