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