From ed1231475e4d7bdc6fb1b73a76a669952c2639da Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Mon, 29 Apr 2019 11:18:41 -0400 Subject: [PATCH] move versionBaseUrl to the top of releases.js --- static/releases.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/static/releases.js b/static/releases.js index 0316be97..f97a7d93 100644 --- a/static/releases.js +++ b/static/releases.js @@ -1,6 +1,7 @@ "use strict"; const baseUrl = "https://seamlessupdate.app/"; +const versionBaseUrl = "https://github.com/GrapheneOS/platform_manifest/releases/tag/"; const devices = ["blueline", "crosshatch", "taimen", "walleye"]; const channels = ["stable", "beta"]; @@ -43,8 +44,6 @@ for (const channel of channels) { }).then(text => { const metadata = text.trim().split(" "); - const versionBaseUrl = "https://github.com/GrapheneOS/platform_manifest/releases/tag/"; - const factoryFilename = device + "-factory-" + metadata[0] + ".zip"; const factoryUrl = baseUrl + factoryFilename;