Skip to content

Commit

Permalink
fix logging and remove some some noise
Browse files Browse the repository at this point in the history
  • Loading branch information
mhammond committed Mar 29, 2012
1 parent cb2113b commit f163c12
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions modules/frameworker.js
Expand Up @@ -30,7 +30,7 @@ const XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
var workerInfos = {}; // keyed by URL.

function log(msg) {
Services.console.logStringMessage(new Date().toISOString(), "[frameworker]:", msg);
Services.console.logStringMessage(new Date().toISOString() + " [frameworker]: " + msg);
};

var _nextPortId = 1;
Expand Down Expand Up @@ -177,12 +177,8 @@ function FrameWorker(url) {
'navigator'];
for each(let fn in workerAPI) {
if (workerWindow[fn]) {
log("injecting " + fn);
sandbox.importFunction(workerWindow[fn], fn);
}
else {
log("NOT injecting " + fn + " as it doesn't exist on the window");
}
}

// chrome functions we want to have accessible to the sandbox
Expand Down

0 comments on commit f163c12

Please sign in to comment.