diff --git a/.common/utils/helpers.js b/.common/utils/helpers.js index 20a30d8..d7c4b99 100644 --- a/.common/utils/helpers.js +++ b/.common/utils/helpers.js @@ -690,19 +690,23 @@ function VersionCheck(requiredVersion, installedVersion) { // 1. CRITICAL: Major versions must match exactly. if (iMajor !== rMajor) { + console.log(`VersionCheck: Major version mismatch. Required: ${rMajor}, Installed: ${iMajor}`); return 'incompatible'; } // 2. SOFT WARNING: The installed minor version is lower than what is required. if (iMinor < rMinor) { + console.log(`VersionCheck: Minor version mismatch. Required: ${rMinor}, Installed: ${iMinor}`); return 'soft-warning'; } - // 3. SOFT WARNING: Minors match, but the installed patch version is lagging. + // 3. SILENT WARNING: Minors match, but the installed patch version is lagging. if (iMinor === rMinor && iPatch < rPatch) { - return 'soft-warning'; + console.log(`VersionCheck: Patch version mismatch. Required: ${rPatch}, Installed: ${iPatch}`); + return 'compatible'; } // 4. PERFECT: Installed version meets or exceeds the required baseline. + console.log(`VersionCheck: Installed version meets or exceeds the required baseline. Required: ${requiredVersion}, Installed: ${installedVersion}`); return 'compatible'; } \ No newline at end of file diff --git a/now-playing/script.js b/now-playing/script.js index 115262a..2fee884 100644 --- a/now-playing/script.js +++ b/now-playing/script.js @@ -9,7 +9,7 @@ const urlParams = new URLSearchParams(queryString); // CONSTANTS // //////////////// -const REQUIRED_VERSION = '0.0.1'; +const REQUIRED_VERSION = '0.0.2'; const SMTC_BRIDGE_DOWNLOAD_URL = 'https://github.com/nuttylmao/smtc-bridge/releases'; ///////////////////