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

Actually check for sandboxed iframe. #121

Closed rtibbles closed 5 years ago

rtibbles commented 5 years ago

Set window.origin to string in test. Do a more rigorous check for window.origin not matching window.location.origin.

120 attempted to implement this check, but was operating under a flawed assumption. This PR rectifies that!

englercj commented 5 years ago

v2.2.1 is now up with this change, I just fixed the whitespace lint failure in master.