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() {