I wonder if we can do a build time hook that inserts a script to set window._host. Or something - so this line can be window.crypton.host = window._host;

What does @devgeeks think?