getCurrentUrl() must not ignore protocol and search parts.

This commit is contained in:
Julien Fontanet 2015-02-12 12:23:35 +01:00
parent 21bd5ba376
commit 7e9639052b

View File

@ -100,7 +100,7 @@ function getCurrentUrl() {
throw new Error('cannot get current URL');
}
return window.location.host + window.location.pathname;
return String(window.location);
}
//====================================================================