Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Commit 6a48a39

Browse files
pavelgjtravis@travis-ci.org
authored andcommitted
fix(http): use location.href instead of toString
location.toString() fails when running with web_compomnents polyfill.
1 parent 36d93d8 commit 6a48a39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/core_dom/http.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ class Http {
392392
* the application document.
393393
*/
394394
bool _urlIsSameOrigin(String requestUrl) {
395-
Uri originUrl = Uri.parse(_location.location.toString());
395+
Uri originUrl = Uri.parse(_location.location.href);
396396
Uri parsed = originUrl.resolve(requestUrl);
397397
return (parsed.scheme == originUrl.scheme && parsed.host == originUrl.host);
398398
}

0 commit comments

Comments
 (0)