Skip to content

Commit

Permalink
added originalMode variable
Browse files Browse the repository at this point in the history
  • Loading branch information
robcee committed Feb 11, 2011
1 parent d71345d commit 4caef4f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ The Bookmarks Deiconizer addon removes these unsightly abominations from your to

## Changelog ##

**v2.2.2** added originalMode variable

**v2.2.1** added unload handler

**v2.2** - fixed bookmark panel issue.

**v2.1.2** - revved maxversion
Expand Down
5 changes: 4 additions & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ Cu.import("resource://gre/modules/Services.jsm", jsm);

var services = exports.services = jsm.Services;

var originalMode = "";

/**
* Popup shown listener for the editBookmarkPanel
*/
Expand Down Expand Up @@ -78,6 +80,7 @@ var windowOpenedCallback = function(aSubject, aTopic, aObject) {
*/
var deiconizeToolbar = function(aDocument) {
let toolbar = aDocument.getElementById("PersonalToolbar");
originalMode = toolbar.getAttribute("mode");
toolbar.setAttribute("mode", "text");
};

Expand All @@ -90,7 +93,7 @@ var deiconizeToolbar = function(aDocument) {
*/
var reiconizeToolbar = function(aDocument) {
let toolbar = aDocument.getElementById("PersonalToolbar");
toolbar.setAttribute("mode", "icon");
toolbar.setAttribute("mode", originalMode);
};

/**
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "jid0-TRew4ErAYBTQ3UFPwfAI5aBEvlg",
"description": "Remove icons from Bookmarks Toolbar.",
"author": "Rob Campbell (http://antennasoft.net/robcee) <rob@antennasoft.net>",
"version": "2.2",
"version": "2.2.2",
"url": "http://antennasoft.net/robcee/bookmarks-deiconizer/",
"license": "Unlicense"
}

0 comments on commit 4caef4f

Please sign in to comment.