@vacantthinker/firefox-addon-framework-easy 2026.604.1807 → 2026.604.1932
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/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {tabOpRemove} from './opTab.js';
|
|
2
2
|
import {serviceDownloadByDownlink} from './serviceCommon.js';
|
|
3
3
|
import {browserTabSendMessage} from './browserTab.js';
|
|
4
|
+
import {browserNotificationCreate} from './browserNotification.js';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* offer common act <=> function, eg: actRemoveTab, actLog
|
|
@@ -9,6 +10,7 @@ import {browserTabSendMessage} from './browserTab.js';
|
|
|
9
10
|
*
|
|
10
11
|
* @param act{
|
|
11
12
|
* 'actLog'
|
|
13
|
+
* |'actNotification'
|
|
12
14
|
* |'actRemoveTab'
|
|
13
15
|
* |'actDownloadFile'
|
|
14
16
|
* |'actSendMessageToTab'
|
|
@@ -20,6 +22,9 @@ export function browserRuntimeOnMessageCommon(act, message) {
|
|
|
20
22
|
case 'actLog':
|
|
21
23
|
console.log('act', act, 'message', message);
|
|
22
24
|
break;
|
|
25
|
+
case 'actNotification':
|
|
26
|
+
browserNotificationCreate(message.content)
|
|
27
|
+
break
|
|
23
28
|
case 'actRemoveTab':
|
|
24
29
|
tabOpRemove(message.tabId);
|
|
25
30
|
break;
|