Skip to content

Commit

Permalink
Debug setting + log.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodil Stokke committed Mar 20, 2009
1 parent bf083ac commit 13dd2f6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion content/tweetlol.js
Expand Up @@ -111,7 +111,12 @@ function updateTabs() {
}

function log(msg) {
Application.console.log("tweetlol: " + msg);
if (prefs.getBoolPref("debug")) {
if (window.console)
window.console.log("tweetlol: " + msg);
else
Application.console.log("tweetlol: " + msg);
}
}

function nsUrl(spec) {
Expand Down
1 change: 1 addition & 0 deletions defaults/preferences/tweetlol.js
Expand Up @@ -2,3 +2,4 @@ pref("extensions.tweetlol.username", "");
pref("extensions.tweetlol.refreshInterval", 3);
pref("extensions.tweetlol.tweetsPerPage", 50);
pref("extensions.tweetlol.resolveLinks", false);
pref("extensions.tweetlol.debug", false);

0 comments on commit 13dd2f6

Please sign in to comment.