From 2e8d024cd2550b976b87a08924256b4e57bbd97c Mon Sep 17 00:00:00 2001 From: Mavis Ou Date: Fri, 2 Aug 2013 15:29:53 -0700 Subject: [PATCH] code cleanup --- data/content-script.js | 2 +- data/style.css | 4 ---- data/ui.js | 2 +- lib/connection.js | 7 ++----- 4 files changed, 4 insertions(+), 11 deletions(-) diff --git a/data/content-script.js b/data/content-script.js index 1cea819..4e7229f 100644 --- a/data/content-script.js +++ b/data/content-script.js @@ -35,7 +35,7 @@ self.port.on("passTempConnections", function(connReceived){ localStorage.lastSaved = Date.now(); var nonPrivateConnections = connReceived.filter(function(connection){ - return (connection[unsafeWindow.FROM_PRIVATE_MODE] == null); + return (connection[unsafeWindow.FROM_PRIVATE_MODE] == false); }); unsafeWindow.saveConnectionsByDate(nonPrivateConnections); }); diff --git a/data/style.css b/data/style.css index 17f31b5..1aee6bb 100644 --- a/data/style.css +++ b/data/style.css @@ -43,10 +43,6 @@ a:hover{ color: #6FC3E5; } -a:visited{ - color: #FFF; -} - .large-header{ color: #73A4B8; font-size: 18px; diff --git a/data/ui.js b/data/ui.js index 6f03bfd..7e9d87b 100644 --- a/data/ui.js +++ b/data/ui.js @@ -323,7 +323,7 @@ function exportFormat(connections, roundOff){ /* Filter out connections collected in Private Mode */ function excludePrivateConnection(connections){ return connections.filter(function(connection){ - return (connection[FROM_PRIVATE_MODE] == null); + return (connection[FROM_PRIVATE_MODE] == false); }) } diff --git a/lib/connection.js b/lib/connection.js index 73ed5fe..fbd5326 100644 --- a/lib/connection.js +++ b/lib/connection.js @@ -246,13 +246,10 @@ Connection.prototype.toLog = function(){ this.targetSub, this.method, this.status, - this.cacheable + this.cacheable, + this._sourceTab.isPrivate ]; - if ( this._sourceTab.isPrivate ){ - connectionAsArray.push("fromPrivateMode"); - } - return connectionAsArray; };