Skip to content

Commit cde1027

Browse files
committed
Tweaks
- Chrome and Safari each get their own background page/script - Chrome popover icon now has a disabled state
1 parent 90b56d0 commit cde1027

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<key>Chrome</key>
2020
<dict>
2121
<key>Global Page</key>
22-
<string>background.html</string>
22+
<string>background-safari.html</string>
2323
<key>Popovers</key>
2424
<array>
2525
<dict>

build.rb

+5-2
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,19 @@
4949
end
5050

5151
if EXT_BACKGROUND_PAGE
52-
@text_files.push "background.html"
52+
@text_files.push "background-safari.html"
5353
@cs_files.push "utils.coffee"
54-
@cs_files.push "background.coffee"
54+
@cs_files.push "background-safari.coffee"
55+
@cs_files.push "background-chrome.coffee"
5556
end
5657

5758
if EXT_POPOVER_MENU
5859
@binary_files.push "toolbar-button-icon-safari.png"
5960
@binary_files.push "[email protected]"
6061
@binary_files.push "toolbar-button-icon-chrome.png"
6162
@binary_files.push "[email protected]"
63+
@binary_files.push "toolbar-button-icon-chrome-disabled.png"
64+
@binary_files.push "[email protected]"
6265
@text_files.push "popover.css"
6366
@text_files.push "popover.html"
6467
@cs_files.push "popover.coffee"

manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"default_popup": "popover.html"
1717
},
1818
"background": {
19-
"scripts": ["utils.js","background.js"],
19+
"scripts": ["utils.js","background-chrome.js"],
2020
"persistent": true
2121
},
2222
"content_security_policy": "default-src 'self' 'unsafe-eval' <%= DEX_URL %>",

0 commit comments

Comments
 (0)