getCurrentUrl() must not ignore protocol and search parts.
This commit is contained in:
parent
21bd5ba376
commit
7e9639052b
@ -100,7 +100,7 @@ function getCurrentUrl() {
|
|||||||
throw new Error('cannot get current URL');
|
throw new Error('cannot get current URL');
|
||||||
}
|
}
|
||||||
|
|
||||||
return window.location.host + window.location.pathname;
|
return String(window.location);
|
||||||
}
|
}
|
||||||
|
|
||||||
//====================================================================
|
//====================================================================
|
||||||
|
Loading…
Reference in New Issue
Block a user