[Pkg-mozext-commits] [requestpolicy] 189/257: [fix] ProcessEnvironment: console not defined
David Prévot
taffit at moszumanska.debian.org
Thu Jan 28 03:20:12 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository requestpolicy.
commit fed01846351d5b71a5b0818559961fdda848f72c
Author: Martin Kimmerle <dev at 256k.de>
Date: Thu Dec 3 12:54:51 2015 +0100
[fix] ProcessEnvironment: console not defined
---
src/content/lib/environment.process.js | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/content/lib/environment.process.js b/src/content/lib/environment.process.js
index 3419bbe..66da3eb 100644
--- a/src/content/lib/environment.process.js
+++ b/src/content/lib/environment.process.js
@@ -27,6 +27,8 @@ const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
/* exported ProcessEnvironment */
/* global Environment */
+let {console} = Cu.import("resource://gre/modules/devtools/Console.jsm", {});
+
let {ScriptLoader} = Cu.import(
"chrome://rpcontinued/content/lib/script-loader.jsm");
let {C} = ScriptLoader.importModule("lib/utils/constants");
@@ -184,7 +186,9 @@ var ProcessEnvironment = (function() {
// Unloading `environment.jsm` has to be the last task.
// After that task, any global object, such as
// `Environment` or `Cu` is not available anymore.
- //console.debug("unloading environment.jsm");
+ // #ifdef LOG_ENVIRONMENT
+ console.debug("unloading environment.jsm");
+ // #endif
Cu.unload("chrome://rpcontinued/content/lib/environment.jsm");
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/requestpolicy.git
More information about the Pkg-mozext-commits
mailing list