Simplify _getUrl function (#1121)
This commit is contained in:
parent
f28fe33cae
commit
194359f4ec
@ -260,7 +260,7 @@ const yomichan = (() => {
|
||||
// Private
|
||||
|
||||
_getUrl() {
|
||||
return (typeof window === 'object' && window !== null ? window.location.href : '');
|
||||
return location.href;
|
||||
}
|
||||
|
||||
_getLogContext() {
|
||||
|
Loading…
Reference in New Issue
Block a user