Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix for API change

  • Loading branch information...
commit 43091359ab8e74e64749f7319f34b9f5149138f7 1 parent 156076c
@dethe dethe authored
View
2  data/clock.js
@@ -33,7 +33,7 @@ function onReset(){
}
function onInit(){
- console.log('clock::onInit()');
+ // console.log('clock::onInit()');
aggregate.on('connection', onConnection);
// console.log("= onInit = allConnections.length = %s" , allConnections.length);
drawClockFrame();
View
2  data/graph.js
@@ -49,7 +49,7 @@ function onUpdate(){
}
function onInit(){
- console.log('graph::onInit()');
+ // console.log('graph::onInit()');
// console.log('initializing graph from %s connections', filteredAggregate.nodes.length);
vis = d3.select(vizcanvas);
// A D3 visualization has a two main components, data-shaping, and setting up the D3 callbacks
View
2  data/list.js
@@ -25,7 +25,7 @@ function onReset(){
}
function onInit(){
- console.log('list::onInit()');
+ // console.log('list::onInit()');
vizcanvas.classList.add("hide"); // we don't need vizcanvas here, so hide it
// A D3 visualization has a two main components, data-shaping, and setting up the D3 callbacks
// This binds our data to the D3 visualization and sets up the callbacks
View
4 lib/connection.js
@@ -175,9 +175,9 @@ function getProtocol(uri){
}
-Connection.prototype.restoreFromSubject = function(subject){
+Connection.prototype.restoreFromSubject = function(event){
// Check to see if this is in fact a third-party connection, if not, return
- var channel = subject.QueryInterface(Ci.nsIHttpChannel);
+ var channel = event.subject.QueryInterface(Ci.nsIHttpChannel);
var source = channel.referrer;
var target = channel.URI;
var targetDomain = getDomain(target.host);
View
6 lib/main.js
@@ -1,18 +1,18 @@
"use strict";
-const obSvc = require('sdk/deprecated/observer-service');
+const events = require("sdk/system/events");
const { PageMod } = require("sdk/page-mod");
const { Connection, addConnection } = require('./connection');
const tabEvents = require('./tab/events');
const ui = require('./ui');
-obSvc.add("http-on-examine-response", function(subject) {
+events.on("http-on-examine-response", function(subject) {
var connection = Connection.fromSubject(subject);
if (connection.valid){
addConnection(connection);
}
-});
+}, true);
Connection.on('log', function(message){
ui.emit('log', message);
View
2  package.json
@@ -4,7 +4,7 @@
"description": "Lightbeam is a Firefox add-on that allows you to see the third parties that are collecting information about your browsing activity, with and without your consent. Using interactive visualizations, Lightbeam shows you the relationships between these third parties and the sites you visit.",
"author": "Mozilla Foundation",
"license": "MPL 2.0",
- "version": "1.0.6",
+ "version": "1.0.8",
"id": "jid1-F9UJ2thwoAm5gQ",
"permissions": {
"private-browsing": true
Please sign in to comment.
Something went wrong with that request. Please try again.