Skip to content

Commit e11c88a

Browse files
committed
enhance: firefox support
1 parent 7ccfcb3 commit e11c88a

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

src/manifest.json.cjs

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ const ReleaseFor = {
1111
matches: [],
1212
},
1313
],
14+
action: {
15+
default_popup: 'popup.html',
16+
default_title: 'Logseq Copilot',
17+
},
1418
},
1519
edge: {
1620
manifest_version: 3,
@@ -23,14 +27,21 @@ const ReleaseFor = {
2327
matches: [],
2428
},
2529
],
30+
action: {
31+
default_popup: 'popup.html',
32+
default_title: 'Logseq Copilot',
33+
},
2634
},
2735
firefox: {
2836
manifest_version: 2,
2937
background: {
3038
scripts: ['background.js'],
3139
},
32-
persistent: true,
3340
web_accessible_resources: ['content-script.css', 'assets/img/logo.png'],
41+
browser_action: {
42+
default_popup: 'popup.html',
43+
default_title: 'Logseq Copilot',
44+
},
3445
},
3546
};
3647

@@ -53,10 +64,6 @@ const build = (releaseFor) => {
5364
},
5465
],
5566
permissions: ['storage', 'tabs'],
56-
action: {
57-
default_popup: 'popup.html',
58-
default_title: 'Logseq Copilot',
59-
},
6067
options_ui: {
6168
page: 'options.html',
6269
browser_style: false,

0 commit comments

Comments
 (0)