diff --git a/src/dashboard/index.html b/src/dashboard/index.html index 6fcc469..ae49447 100644 --- a/src/dashboard/index.html +++ b/src/dashboard/index.html @@ -167,7 +167,7 @@

{{details.header}} ({{ model }})

diff --git a/src/dashboard/js/index.js b/src/dashboard/js/index.js index 8383e3b..6bd1c42 100644 --- a/src/dashboard/js/index.js +++ b/src/dashboard/js/index.js @@ -50,8 +50,8 @@ const app = createApp({ }, emulatorUrl: { url: "", - typeChoices: ["Gitlab job ID", "Custom link"], - type: "Gitlab job ID", + typeChoices: ["Custom link"], + type: "Custom link", model: "T2T1", downloadMessage: "", }, @@ -277,23 +277,6 @@ const app = createApp({ const model = this.emulatorUrl.model; - // URL might need some processing in case it is not complete - // (Yes, handling URLs as strings is not very good, but should be alright in this easy case) - if (this.emulatorUrl.type === "Gitlab job ID") { - const gitlabJobPrefix = - "https://gitlab.com/satoshilabs/trezor/trezor-firmware/-/jobs"; - const T1PathSuffix = "artifacts/raw/legacy/firmware/trezor.elf"; - // TR/T3T1 share things with T2 here - const T2PathSuffix = - "artifacts/raw/core/build/unix/trezor-emu-core"; - const baseUrl = `${gitlabJobPrefix}/${url}`; - if (model === "T1B1") { - url = `${baseUrl}/${T1PathSuffix}`; - } else { - url = `${baseUrl}/${T2PathSuffix}`; - } - } - this.sendMessage({ type: "emulator-start-from-url", url,