Permalink
Browse files

New icon that looks a bit better on a Retina Mac running Chrome...

  • Loading branch information...
1 parent c12ff03 commit fe10569e06c85d56a0592108b496eec5d6b0cbf8 Joseph Carney committed Mar 15, 2014
@@ -11,7 +11,7 @@
!tab.url.indexOf('chrome-extension://')) {
alert('For security reasons Chrome extensions cannot ' +
'run content scripts at this page.');
-
+
return;
}
chrome.windows.create({
@@ -23,6 +23,12 @@
type: 'popup'
});
});
+ chrome.browserAction.setIcon({
+ path: {
+ "19": "icon19x19.png",
+ "38": "icon19x19@2x.png"
+ }
+ });
</script>
</body>
</html>
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -10,26 +10,27 @@
},
"browser_action": {
"name": "YSlow",
- "default_icon": "icon.png"
+ "default_icon": {
+ "19": "icon38x19.png",
+ "38": "icon38x19@2x.png"
+ },
},
"background_page": "background.html",
"options_page": "options.html",
- "content_scripts": [
- {
- "matches": [
- "http://*/*",
- "https://*/*"
- ],
- "js": [
- "content.js",
- "yslow-chrome.js"
- ]
- }
- ],
+ "content_scripts": [{
+ "matches": [
+ "http://*/*",
+ "https://*/*"
+ ],
+ "js": [
+ "content.js",
+ "yslow-chrome.js"
+ ]
+ }],
"permissions": [
"tabs",
"cookies",
"http://*/*",
"https://*/*"
]
-}
+}

0 comments on commit fe10569

Please sign in to comment.