Commit 685fae90 authored by Michał Gołębiowski's avatar Michał Gołębiowski

Ajax: Don't use bare location, it breaks Node with jsdom

Tests not included; the proper fix is coming to the master branch.
parent ce9869f9
...@@ -41,7 +41,7 @@ var ...@@ -41,7 +41,7 @@ var
allTypes = "*/".concat( "*" ), allTypes = "*/".concat( "*" ),
// Document location // Document location
ajaxLocation = location.href, ajaxLocation = window.location.href,
// Segment location into parts // Segment location into parts
ajaxLocParts = rurl.exec( ajaxLocation.toLowerCase() ) || []; ajaxLocParts = rurl.exec( ajaxLocation.toLowerCase() ) || [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment