function fillLogForVersion(container, partition_id, version) {
    if (!version) {
      return;
    }
    if (!(partition_id in allLogMessages)) {
      allLogMessages[partition_id] = {};
    }
    var logMessages = allLogMessages[partition_id];
    if (version.version_id in logMessages) {
      version.log = logMessages[version.version_id];
    } else {
      version.log = '';
    }
    var logAreas = container.querySelectorAll('textarea.serviceworker-log');
    for (var i = 0; i < logAreas.length; ++i) {
      var logArea = logAreas[i];
      if (logArea.partition_id == partition_id &&
          logArea.version_id == version.version_id) {
        logArea.value = version.log;
      }
    }
  }
// Set log for a worker version.
Set log for a worker version.
Set log for a worker version .
function fillLogForVersion(container, partition_id, version) {
    if (!version) {
      return;
    }
    if (!(partition_id in allLogMessages)) {
      allLogMessages[partition_id] = {};
    }
    var logMessages = allLogMessages[partition_id];
    if (version.version_id in logMessages) {
      version.log = logMessages[version.version_id];
    } else {
      version.log = '';
    }
    var logAreas = container.querySelectorAll('textarea.serviceworker-log');
    for (var i = 0; i < logAreas.length; ++i) {
      var logArea = logAreas[i];
      if (logArea.partition_id == partition_id &&
          logArea.version_id == version.version_id) {
        logArea.value = version.log;
      }
    }
  }
function fillLogForVersion ( container , partition_id , version ) { if ( ! version ) { return ; } if ( ! ( partition_id in allLogMessages ) ) { allLogMessages [ partition_id ] = { } ; } var logMessages = allLogMessages [ partition_id ] ; if ( version . version_id in logMessages ) { version . log = logMessages [ version . version_id ] ; } else { version . log = '' ; } var logAreas = container . querySelectorAll ( 'textarea.serviceworker-log' ) ; for ( var i = 0 ; i < logAreas . length ; ++ i ) { var logArea = logAreas [ i ] ; if ( logArea . partition_id == partition_id && logArea . version_id == version . version_id ) { logArea . value = version . log ; } } }
Set log for a worker version.
Set log for a worker version .