Simplify _getUrl function (#1121)

This commit is contained in:
toasted-nutbread 2020-12-18 13:35:20 -05:00 committed by GitHub
parent f28fe33cae
commit 194359f4ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -260,7 +260,7 @@ const yomichan = (() => {
// Private // Private
_getUrl() { _getUrl() {
return (typeof window === 'object' && window !== null ? window.location.href : ''); return location.href;
} }
_getLogContext() { _getLogContext() {