diff options
Diffstat (limited to 'src/lib/log.js')
-rw-r--r-- | src/lib/log.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/log.js b/src/lib/log.js index f548c49..a30a5a6 100644 --- a/src/lib/log.js +++ b/src/lib/log.js @@ -1,6 +1,8 @@ { - let PREFIX = `[${browser.runtime.getManifest().name}]`; + let PREFIX = typeof browser === "object" + ? `[${browser.runtime.getManifest().name}]` : ''; + let debugCount = 0; function log(msg, ...rest) { |