From 194359f4ec1998a5b36121fa0733ff6329d33633 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Fri, 18 Dec 2020 13:35:20 -0500 Subject: [PATCH] Simplify _getUrl function (#1121) --- ext/mixed/js/yomichan.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() {