mirror of
https://github.com/otomir23/quasar-unlock.git
synced 2026-11-07 15:06:11 +03:00
fix: set yandexstation as a fallback platform
the factory build of the first-gen yandex station doesn't send the platform parameter lol
This commit is contained in:
+2
-2
@@ -47,10 +47,10 @@ app.get(
|
||||
app.get(
|
||||
"/check_updates",
|
||||
(c) => {
|
||||
const platform = c.req.query("platform")
|
||||
const platform = c.req.query("platform") ?? "yandexstation"
|
||||
const version = c.req.query("version")
|
||||
|
||||
if (platform && version) {
|
||||
if (version) {
|
||||
const update = getAvailableUpdateFor(platform, version)
|
||||
if (update)
|
||||
return c.json(update)
|
||||
|
||||
Reference in New Issue
Block a user