Skip to content

Commit

Permalink
removed commented-out code [issue brianking#38]
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoMcA committed Jan 18, 2015
1 parent 4ba1eb6 commit 2f5b8db
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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,
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 2f5b8db

Please sign in to comment.