Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make some final fixes to the addon.

  • Loading branch information...
commit fca6d77122c956fc57af4427b519cb76b05e370b 1 parent c8e88b3
@bwinton authored
Showing with 11 additions and 11 deletions.
  1. +3 −3 addon/lib/main.js
  2. +8 −8 addon/package.json
View
6 addon/lib/main.js
@@ -12,7 +12,7 @@ case 'WINNT':
OS = 'windows';
break;
case 'Darwin':
- OS = 'mac'
+ OS = 'mac';
break;
}
const customUrl = encodeURI(prefs.prototypeUrl.replace('%OS%', OS));
@@ -20,7 +20,7 @@ const customUrl = encodeURI(prefs.prototypeUrl.replace('%OS%', OS));
var widget = widgets.Widget({
id: "mozilla-link",
label: "Mozilla website",
- contentURL: "http://people.mozilla.com/~bwinton/australis-customization/images-win7/toolbarButton-customize.png",
+ contentURL: "http://people.mozilla.com/~bwinton/australis/customization/mac/images/toolbarButton-menu.png",
onClick: function() {
// Remove the location bar from the page.
var whitelist = customUrl.toLowerCase();
@@ -39,6 +39,6 @@ var aboutHomeSearch = pageMod.PageMod({
contentScriptWhen: 'ready',
contentScript: 'document.addEventListener("tpemit", function(e) {self.port.emit("tp", e); return true;});',
onAttach: function(worker) {
- worker.port.on('tp', function(data) {console.log(data)});
+ worker.port.on('tp', function(data) {console.log(data);});
}
});
View
16 addon/package.json
@@ -1,16 +1,16 @@
{
- "name": "australis-customization",
- "license": "MPL 2.0",
- "author": "",
- "version": "0.5",
- "fullName": "australis-customization",
- "id": "jid1-JP21ittUYJBuSw",
+ "name": "australis-customization",
+ "license": "MPL 2.0",
+ "author": "Blake Winton <bwinton@mozilla.com>",
+ "version": "0.5",
+ "fullName": "australis-customization",
+ "id": "jid1-JP21ittUYJBuSw",
"description": "a basic add-on",
"preferences": [{
"name": "prototypeUrl",
"title": "The Prototype Url.",
- "description": "The url to the prototype, duh.",
+ "description": "The url to the prototype. %OS% will be replaced by the OS name.",
"type": "string",
- "value": "http://people.mozilla.com/~bwinton/australis/customization/%OS%/"
+ "value": "http://people.mozilla.com/~bwinton/australis/customization/mac/"
}]
}
Please sign in to comment.
Something went wrong with that request. Please try again.