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

Commit

Permalink
fix(http): use location.href instead of toString
Browse files Browse the repository at this point in the history
location.toString() fails when running with web_compomnents polyfill.
  • Loading branch information
pavelgj authored and [email protected] committed May 10, 2014
1 parent 36d93d8 commit 6a48a39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core_dom/http.dart
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ class Http {
* the application document.
*/
bool _urlIsSameOrigin(String requestUrl) {
Uri originUrl = Uri.parse(_location.location.toString());
Uri originUrl = Uri.parse(_location.location.href);
Uri parsed = originUrl.resolve(requestUrl);
return (parsed.scheme == originUrl.scheme && parsed.host == originUrl.host);
}
Expand Down

0 comments on commit 6a48a39

Please sign in to comment.