// Leave this as var since it isn't compiled and is run on TVs that don't support es6. var bridge; // Initialize the bridge on script execution to handle connecting when embedded. window.addEventListener('load', function() { bridge = new ima.Bridge(new ima.IframeBridge()); }, /* useCapture= */ false);