src/service/extensions-impl.js
/**
   * Ensures that the script has already been injected in the page.
   * @param {string} extensionId
   * @param {!ExtensionHolderDef} holder
   * @private
   */
Ensures that the script has already been injected in the page.
@param {string} extensionId
@param {!ExtensionHolderDef} holder
@private
Ensures that the script has already been injected in the page . @param { string } extensionId @param { !ExtensionHolderDef } holder @private
insertExtensionScriptIfNeeded_(extensionId, holder) {
    if (this.isExtensionScriptRequired_(extensionId, holder)) {
      const scriptElement = this.createExtensionScript_(extensionId);
      this.win.document.head.appendChild(scriptElement);
      holder.scriptPresent = true;
    }
  }
insertExtensionScriptIfNeeded_ ( extensionId , holder ) { if ( this . isExtensionScriptRequired_ ( extensionId , holder ) ) { const scriptElement = this . createExtensionScript_ ( extensionId ) ; this . win . document . head . appendChild ( scriptElement ) ; holder . scriptPresent = true ; } }
Ensures that the script has already been injected in the page.
Ensures that the script has already been injected in the page .