From 2f5b8db1594330db2dfc6ccf9187b328919c5c33 Mon Sep 17 00:00:00 2001 From: Leo McArdle Date: Sun, 18 Jan 2015 15:28:28 +0000 Subject: [PATCH] removed commented-out code [issue #38] --- lib/main.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/lib/main.js b/lib/main.js index ea8f497..5e22a1f 100644 --- a/lib/main.js +++ b/lib/main.js @@ -6,8 +6,6 @@ var simpleStorage = require("sdk/simple-storage"); var pageMod = require("sdk/page-mod"); var tabs = require("sdk/tabs"); var Request = require("sdk/request").Request; -//const protocol = require('protocol'); - // get the data directory var data = require("sdk/self").data; @@ -16,9 +14,6 @@ var myworker = null; var sops = null; -// disable debug logging for releases -//var console = new function() {}; console.debug = function() {}; - var panel = require("sdk/panel").Panel({ width: 530, height: 420, @@ -103,22 +98,8 @@ var getSOPs = function() { exports.main = function(options, callback) { console.debug("Initializing the Mozilla Reps Companion"); - /* about:reps */ - /* This will not be turned on until path issues are resolved in the SDK - See bugs 759190 and 760233 */ - /* - protocol.about('reps', { - onRequest: function(request, response) { - response.contentType = "text/html"; - response.end(data.load("remo-start.html").replace(/\{\s*page\.baseurl\s*\}/, self.data.url(""))); - return; - } - }).register(); - */ - if (!simpleStorage.storage.hasShownFirstRun) { openRemoPage(data.url("remo-start.html")); - //openRemoPage("about:reps"); simpleStorage.storage.hasShownFirstRun = true; } getSOPs();