зеркало из https://github.com/mozilla/lightbeam.git
code cleanup
This commit is contained in:
Родитель
59abce62d6
Коммит
2e8d024cd2
|
@ -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);
|
||||
});
|
||||
|
|
|
@ -43,10 +43,6 @@ a:hover{
|
|||
color: #6FC3E5;
|
||||
}
|
||||
|
||||
a:visited{
|
||||
color: #FFF;
|
||||
}
|
||||
|
||||
.large-header{
|
||||
color: #73A4B8;
|
||||
font-size: 18px;
|
||||
|
|
|
@ -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);
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче