aboutsummaryrefslogtreecommitdiff
path: root/ext/mixed
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-12-18 13:35:20 -0500
committerGitHub <noreply@github.com>2020-12-18 13:35:20 -0500
commit194359f4ec1998a5b36121fa0733ff6329d33633 (patch)
treefeee45da3e3b9faff9639c95ad039c6b48aac581 /ext/mixed
parentf28fe33cae86affdb97843c15396d47f153a8144 (diff)
Simplify _getUrl function (#1121)
Diffstat (limited to 'ext/mixed')
-rw-r--r--ext/mixed/js/yomichan.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mixed/js/yomichan.js b/ext/mixed/js/yomichan.js
index 47c63e38..98e70a08 100644
--- a/ext/mixed/js/yomichan.js
+++ b/ext/mixed/js/yomichan.js
@@ -260,7 +260,7 @@ const yomichan = (() => {
// Private
_getUrl() {
- return (typeof window === 'object' && window !== null ? window.location.href : '');
+ return location.href;
}
_getLogContext() {