englercj / resource-loader

A middleware-style generic resource loader built with web games in mind.
http://englercj.github.io/resource-loader/
MIT License
424 stars 77 forks source link

Add test and fix for iframe sandbox cross origin behaviour. #120

Closed rtibbles closed 5 years ago

rtibbles commented 5 years ago

Fixes #119

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!)