// 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 = ima.Bridge.create(ima.IframeBridge.create()); }, /* useCapture= */ false);