aboutsummaryrefslogtreecommitdiff
path: root/ext/js/core
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/core')
-rw-r--r--ext/js/core/log.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/js/core/log.js b/ext/js/core/log.js
index 8401cc2b..cb714e70 100644
--- a/ext/js/core/log.js
+++ b/ext/js/core/log.js
@@ -73,7 +73,7 @@ class Logger extends EventDispatcher {
*/
logGenericError(error, level, context) {
if (typeof context === 'undefined') {
- context = {url: location.href};
+ context = typeof location === 'undefined' ? {url: 'unknown'} : {url: location.href};
}
let errorString;