Fix DEV_SIMULATE_REMOTE_SEEK targetTime routing in background.js and add build identifier

This commit is contained in:
Timo
2026-07-02 12:57:58 +02:00
parent 01762b0c2f
commit beda924b65
3 changed files with 18 additions and 6 deletions
+6
View File
@@ -140,6 +140,12 @@ function copyExtensionFiles(targetDir, browserName) {
fs.writeFileSync(destPath, content);
console.log(`✓ Injected uninstall URL constants for ${browserName} into background.js`);
} else if (item === 'popup.html') {
let content = fs.readFileSync(srcPath, 'utf8');
const timestamp = new Date().toISOString().replace('T', ' ').substring(0, 19) + ' UTC';
content = content.replace(/__BUILD_TIMESTAMP__/g, timestamp);
fs.writeFileSync(destPath, content);
console.log(`✓ Injected build timestamp into popup.html: ${timestamp}`);
} else {
fs.copyFileSync(srcPath, destPath);
}