summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2019-04-29 11:18:41 -0400
committerDaniel Micay <danielmicay@gmail.com>2019-04-29 11:18:41 -0400
commited1231475e4d7bdc6fb1b73a76a669952c2639da (patch)
tree7d7c125b87a6e46c39fa758d7cb153b8ad14fa32
parentafd52089f6fa69c5bfd1a820f872573dbe442a68 (diff)
move versionBaseUrl to the top of releases.js
-rw-r--r--static/releases.js3
1 files changed, 1 insertions, 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;