diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-12-18 13:35:20 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-18 13:35:20 -0500 |
commit | 194359f4ec1998a5b36121fa0733ff6329d33633 (patch) | |
tree | feee45da3e3b9faff9639c95ad039c6b48aac581 /ext/mixed/js | |
parent | f28fe33cae86affdb97843c15396d47f153a8144 (diff) |
Simplify _getUrl function (#1121)
Diffstat (limited to 'ext/mixed/js')
-rw-r--r-- | ext/mixed/js/yomichan.js | 2 |
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() { |