Adds a test for the new behaviour and fixes the behaviour in the case where window.origin is null.
Test passed locally (although the event tests of the Loader failed on my machine, but I don't see how anything I changed might have caused that so, assuming it will work on Travis!)
Fixes #119
Adds a test for the new behaviour and fixes the behaviour in the case where
window.origin
isnull
.Test passed locally (although the event tests of the Loader failed on my machine, but I don't see how anything I changed might have caused that so, assuming it will work on Travis!)