Skip to content

TagSpaces is an offline, open source, document manager with tagging support

correctong icon paths disabling the use of the addon-page module, because it is depricated

Ilian692c9a6dc76e
diff --git a/lib/main.js b/lib/main.js
index ba405b8b5..88f952a14 100644
--- a/lib/main.js
+++ b/lib/main.js
@@ -18,7 +18,9 @@ if (PRODUCTION == "true") {
//var selection = require("selection");
var widgets = require("widget");
var data = require('self').data;
-var addontab = require("addon-page"); // Enables the opening of main UI without location bar
+// DEPRECATED: The addon-page module is deprecated.In the new Firefox UI design all pages will
+// include navigational elements;once the new design ships, using the addon-page module will not have any effect.
+//var addontab = require("addon-page"); // Enables the opening of main UI without location bar
var ioutils = require("ioutils");
var settings = require("settings");
var request = require("request");
@@ -64,7 +66,7 @@ exports.main = function(options, callbacks) {
widgets.Widget({
id: "TagSpaces",
label: "TagSpaces",
- contentURL: data.url("icons/icon16.png"),
+ contentURL: data.url("assets/icon16.png"),
onClick: function() {
// Opens the main ui in a new pinned tab
require("tabs").open({
@@ -73,10 +75,10 @@ exports.main = function(options, callbacks) {
});
},
onMouseover: function() {
- this.contentURL = data.url("icons/icon16color.png");
+ this.contentURL = data.url("assets/icon16color.png");
},
onMouseout: function() {
- this.contentURL = data.url("icons/icon16.png");
+ this.contentURL = data.url("assets/icon16.png");
}
});
@@ -85,7 +87,7 @@ exports.main = function(options, callbacks) {
id: "TagSpacesMenuItem",
menuid: "menu_ToolsPopup",
label: "TagSpaces",
- image: data.url("icons/icon16.png"),
+ image: data.url("assets/icon16.png"),
onCommand: function() {
// Opens the main ui in a new pinned tab
require("tabs").open({
@@ -114,7 +116,7 @@ function initToobarButton() {
toolbarButton = require("toolbarbutton").ToolbarButton({
id: "TSToolbarButton",
label: "TagSpaces",
- image: data.url("icons/icon16.png"),
+ image: data.url("assets/icon16.png"),
onCommand: function() {
require("tabs").open({
url: data.url("index.html"),