function addWebApk(webApkInfo) {
  /** @type {HTMLElement} */ var webApkList = $('webapk-list');

  webApkList.appendChild(
      createElementWithTextAndClass(webApkInfo.name, 'span', 'app-name'));

  webApkList.appendChild(createElementWithTextAndClass(
      'Short name: ', 'span', 'app-property-label'));
  webApkList.appendChild(document.createTextNode(webApkInfo.shortName));

  addWebApkField(webApkList, 'Package name: ', webApkInfo.packageName);
  addWebApkField(
      webApkList, 'Shell APK version: ', '' + webApkInfo.shellApkVersion);
  addWebApkField(webApkList, 'Version code: ', '' + webApkInfo.versionCode);
  addWebApkField(webApkList, 'URI: ', webApkInfo.uri);
  addWebApkField(webApkList, 'Scope: ', webApkInfo.scope);
  addWebApkField(webApkList, 'Manifest URL: ', webApkInfo.manifestUrl);
  addWebApkField(
      webApkList, 'Manifest Start URL: ', webApkInfo.manifestStartUrl);
  addWebApkField(webApkList, 'Display Mode: ', webApkInfo.displayMode);
  addWebApkField(webApkList, 'Orientation: ', webApkInfo.orientation);
  addWebApkField(webApkList, 'Theme color: ', webApkInfo.themeColor);
  addWebApkField(webApkList, 'Background color: ', webApkInfo.backgroundColor);
  addWebApkField(
      webApkList, 'Last Update Check Time: ',
      new Date(webApkInfo.lastUpdateCheckTimeMs).toString());
  addWebApkField(
      webApkList, 'Check for Updates Less Frequently: ',
      webApkInfo.relaxUpdates.toString());
}
/**
 * Adds a new entry to the page with the information of a WebAPK.
 *
 * @param {WebApkInfo} webApkInfo Information about an installed WebAPK.
 */
Adds a new entry to the page with the information of a WebAPK.
Adds a new entry to the page with the information of a WebAPK .
function addWebApk(webApkInfo) {
   var webApkList = $('webapk-list');
  webApkList.appendChild(
      createElementWithTextAndClass(webApkInfo.name, 'span', 'app-name'));
  webApkList.appendChild(createElementWithTextAndClass(
      'Short name: ', 'span', 'app-property-label'));
  webApkList.appendChild(document.createTextNode(webApkInfo.shortName));
  addWebApkField(webApkList, 'Package name: ', webApkInfo.packageName);
  addWebApkField(
      webApkList, 'Shell APK version: ', '' + webApkInfo.shellApkVersion);
  addWebApkField(webApkList, 'Version code: ', '' + webApkInfo.versionCode);
  addWebApkField(webApkList, 'URI: ', webApkInfo.uri);
  addWebApkField(webApkList, 'Scope: ', webApkInfo.scope);
  addWebApkField(webApkList, 'Manifest URL: ', webApkInfo.manifestUrl);
  addWebApkField(
      webApkList, 'Manifest Start URL: ', webApkInfo.manifestStartUrl);
  addWebApkField(webApkList, 'Display Mode: ', webApkInfo.displayMode);
  addWebApkField(webApkList, 'Orientation: ', webApkInfo.orientation);
  addWebApkField(webApkList, 'Theme color: ', webApkInfo.themeColor);
  addWebApkField(webApkList, 'Background color: ', webApkInfo.backgroundColor);
  addWebApkField(
      webApkList, 'Last Update Check Time: ',
      new Date(webApkInfo.lastUpdateCheckTimeMs).toString());
  addWebApkField(
      webApkList, 'Check for Updates Less Frequently: ',
      webApkInfo.relaxUpdates.toString());
}
function addWebApk ( webApkInfo ) { var webApkList = $ ( 'webapk-list' ) ; webApkList . appendChild ( createElementWithTextAndClass ( webApkInfo . name , 'span' , 'app-name' ) ) ; webApkList . appendChild ( createElementWithTextAndClass ( 'Short name: ' , 'span' , 'app-property-label' ) ) ; webApkList . appendChild ( document . createTextNode ( webApkInfo . shortName ) ) ; addWebApkField ( webApkList , 'Package name: ' , webApkInfo . packageName ) ; addWebApkField ( webApkList , 'Shell APK version: ' , '' + webApkInfo . shellApkVersion ) ; addWebApkField ( webApkList , 'Version code: ' , '' + webApkInfo . versionCode ) ; addWebApkField ( webApkList , 'URI: ' , webApkInfo . uri ) ; addWebApkField ( webApkList , 'Scope: ' , webApkInfo . scope ) ; addWebApkField ( webApkList , 'Manifest URL: ' , webApkInfo . manifestUrl ) ; addWebApkField ( webApkList , 'Manifest Start URL: ' , webApkInfo . manifestStartUrl ) ; addWebApkField ( webApkList , 'Display Mode: ' , webApkInfo . displayMode ) ; addWebApkField ( webApkList , 'Orientation: ' , webApkInfo . orientation ) ; addWebApkField ( webApkList , 'Theme color: ' , webApkInfo . themeColor ) ; addWebApkField ( webApkList , 'Background color: ' , webApkInfo . backgroundColor ) ; addWebApkField ( webApkList , 'Last Update Check Time: ' , new Date ( webApkInfo . lastUpdateCheckTimeMs ) . toString ( ) ) ; addWebApkField ( webApkList , 'Check for Updates Less Frequently: ' , webApkInfo . relaxUpdates . toString ( ) ) ; }
Adds a new entry to the page with the information of a WebAPK.
Adds a new entry to the page with the information of a WebAPK .
/** @type {HTMLElement} */