|
|
@ -430,15 +430,6 @@ class CompilerContainer { |
|
|
|
this.data.selectedVersion = this.data.defaultVersion |
|
|
|
this.data.selectedVersion = this.data.defaultVersion |
|
|
|
} |
|
|
|
} |
|
|
|
this._view.versionSelector.innerHTML = '' |
|
|
|
this._view.versionSelector.innerHTML = '' |
|
|
|
this.data.allversions.forEach(build => { |
|
|
|
|
|
|
|
const option = build.path === this.data.selectedVersion |
|
|
|
|
|
|
|
? yo`<option value="${build.path}" selected>${build.longVersion}</option>` |
|
|
|
|
|
|
|
: yo`<option value="${build.path}">${build.longVersion}</option>` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this._shouldBeAdded(option.innerText)) { |
|
|
|
|
|
|
|
this._view.versionSelector.appendChild(option) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
this._view.versionSelector.removeAttribute('disabled') |
|
|
|
this._view.versionSelector.removeAttribute('disabled') |
|
|
|
this.queryParams.update({ version: this.data.selectedVersion }) |
|
|
|
this.queryParams.update({ version: this.data.selectedVersion }) |
|
|
|
let url |
|
|
|
let url |
|
|
@ -460,6 +451,16 @@ class CompilerContainer { |
|
|
|
url = `${urlFromVersion(this.data.selectedVersion)}` |
|
|
|
url = `${urlFromVersion(this.data.selectedVersion)}` |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.data.allversions.forEach(build => { |
|
|
|
|
|
|
|
const option = build.path === this.data.selectedVersion |
|
|
|
|
|
|
|
? yo`<option value="${build.path}" selected>${build.longVersion}</option>` |
|
|
|
|
|
|
|
: yo`<option value="${build.path}">${build.longVersion}</option>` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this._shouldBeAdded(option.innerText)) { |
|
|
|
|
|
|
|
this._view.versionSelector.appendChild(option) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
// Workers cannot load js on "file:"-URLs and we get a
|
|
|
|
// Workers cannot load js on "file:"-URLs and we get a
|
|
|
|
// "Uncaught RangeError: Maximum call stack size exceeded" error on Chromium,
|
|
|
|
// "Uncaught RangeError: Maximum call stack size exceeded" error on Chromium,
|
|
|
|
// resort to non-worker version in that case.
|
|
|
|
// resort to non-worker version in that case.
|
|
|
|