Skip to content

Commit

Permalink
fix ff36 broken: assigned to const variable
Browse files Browse the repository at this point in the history
Closes #1
  • Loading branch information
azrdev committed Mar 7, 2015
1 parent 0edaa10 commit 0d7080e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
4 changes: 1 addition & 3 deletions lib/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//FIXME: wait for https://developer.mozilla.org/Add-ons/SDK/High-Level_APIs/windows#Converting_to_DOM_windows to become stable

let nativeWindow = require('./nativewindow');
let tabs = require('sdk/tabs');
let urls = require('sdk/url');
Expand All @@ -12,7 +10,7 @@ const netUtils = Cu.import("resource://gre/modules/NetUtil.jsm", {}).NetUtil;
//var _ = require("sdk/l10n").get;
function _(str) { return str; } //TODO: l10n

const menuId = null;
let menuId = null;

/** main function - addon startup */
exports.main = function(options, callbacks) {
Expand Down
6 changes: 3 additions & 3 deletions lib/nativewindow.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const data = require('sdk/self').data;
const utils = require('sdk/window/utils');
const recent = utils.getMostRecentBrowserWindow();
const { windows, getMostRecentBrowserWindow } = require('sdk/window/utils');
const recent = getMostRecentBrowserWindow();

//TODO: add menu.update(), doorhanger.hide(), contextmenus.remove()

Expand All @@ -19,7 +19,7 @@ exports.addMenu = addMenu;
* menuId: the menuId that was returned by addMenu
*/
function removeMenu(menuId) {
for(win in utils.windows()) {
for(win in windows()) {
win.NativeWindow.menu.remove(menuId);
}
}
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "Makes cookie whitelisting easy, with native Android GUI.",
"author": "azrdev@qrdn.de",
"license": "GPL 2.0",
"version": "0.9.3",
"contributors": ["Alexander Dietrich"],
"homepage": "https://github.com/azrdev/firefox-cookie-whitelister"
"version": "0.9.4",
"contributors": ["Alexander Dietrich"],
"homepage": "https://github.com/azrdev/firefox-cookie-whitelister"
}

0 comments on commit 0d7080e

Please sign in to comment.