refactor: overhaul update detection - periodic check, icon only, no banner

This commit is contained in:
2026-02-16 22:58:37 +01:00
parent c42cb3f72d
commit 13b94a3eba
7 changed files with 59 additions and 176 deletions

View File

@@ -91,13 +91,14 @@ try {
// Execute the code
vm.runInContext(code, sandbox);
// Regex Check for the FIX
const fixRegex = /lastUpdatedIcon\.replaceWith/;
// Regex Check: update icon appended to header
const fixRegex = /headerTitle\.appendChild\(icon\)/;
if (!fixRegex.test(code)) {
console.error("❌ Logic Test Failed: 'replaceWith' anchor missing in checkForUpdates.");
console.error("❌ Logic Test Failed: 'appendChild(icon)' missing in checkForUpdates.");
process.exit(1);
} else {
console.log("✅ Static Analysis Passed: 'replaceWith' found.");
console.log("✅ Static Analysis Passed: 'appendChild(icon)' found.");
}
// Check dynamic logic usage