Permalink
Browse files

fix for API change

  • Loading branch information...
1 parent 156076c commit 43091359ab8e74e64749f7319f34b9f5149138f7 @dethe dethe committed Feb 5, 2014
Showing with 9 additions and 9 deletions.
  1. +1 −1 data/clock.js
  2. +1 −1 data/graph.js
  3. +1 −1 data/list.js
  4. +2 −2 lib/connection.js
  5. +3 −3 lib/main.js
  6. +1 −1 package.json
View
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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

0 comments on commit 4309135

Please sign in to comment.