detect SCALE 25 properly

Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
This commit is contained in:
Travis Glenn Hansen 2025-03-22 14:54:48 -06:00
parent 93e0446fa3
commit de80f4b25e
1 changed files with 6 additions and 1 deletions

View File

@ -123,8 +123,13 @@ class Api {
async getIsScale() { async getIsScale() {
const systemVersion = await this.getSystemVersion(); const systemVersion = await this.getSystemVersion();
const major = await this.getSystemVersionMajor();
if (systemVersion.v2 && systemVersion.v2.toLowerCase().includes("scale")) { // starting with version 25 the version string no longer contains `-SCALE`
if (
systemVersion.v2 &&
(systemVersion.v2.toLowerCase().includes("scale") || Number(major) >= 20)
) {
return true; return true;
} }