demo/dist/demo.js
function load() {
	      var _this2 = this;

	      if (!this.enabled) {
	        return;
	      } // Check if the Google IMA3 SDK is loaded or load it ourselves


	      if (!is$1.object(window.google) || !is$1.object(window.google.ima)) {
	        loadScript(this.player.config.urls.googleIMA.sdk).then(function () {
	          _this2.ready();
	        }).catch(function () {
	          // Script failed to load or is blocked
	          _this2.trigger('error', new Error('Google IMA SDK failed to load'));
	        });
	      } else {
	        this.ready();
	      }
	    }
function load() {
	      var _this2 = this;

	      if (!this.enabled) {
	        return;
	      } // Check if the Google IMA3 SDK is loaded or load it ourselves


	      if (!is$1.object(window.google) || !is$1.object(window.google.ima)) {
	        loadScript(this.player.config.urls.googleIMA.sdk).then(function () {
	          _this2.ready();
	        }).catch(function () {
	          // Script failed to load or is blocked
	          _this2.trigger('error', new Error('Google IMA SDK failed to load'));
	        });
	      } else {
	        this.ready();
	      }
	    }
function load ( ) { var _this2 = this ; if ( ! this . enabled ) { return ; } // Check if the Google IMA3 SDK is loaded or load it ourselves if ( ! is$1 . object ( window . google ) || ! is$1 . object ( window . google . ima ) ) { loadScript ( this . player . config . urls . googleIMA . sdk ) . then ( function ( ) { _this2 . ready ( ) ; } ) . catch ( function ( ) { // Script failed to load or is blocked _this2 . trigger ( 'error' , new Error ( 'Google IMA SDK failed to load' ) ) ; } ) ; } else { this . ready ( ) ; } }
Load the IMA SDK
Load the IMA SDK