fix: prevent duplicate titles on Taobao login page
Keep a single native title on the entry page even when the host ignores title clearing. Preserve centered headers elsewhere and normalize manifest line endings during shared-code checks.
This commit is contained in:
@@ -13,6 +13,6 @@ for (const name of files) {
|
||||
} else { fs.mkdirSync(path.dirname(dest), { recursive: true }); fs.writeFileSync(dest, source); }
|
||||
}
|
||||
const dest = path.join(root, 'vendor/manifest.json'), expected = JSON.stringify(manifest, null, 2) + '\n';
|
||||
if (check) { if (fs.readFileSync(dest, 'utf8') !== expected) throw Error('Shared manifest drift'); }
|
||||
if (check) { if (fs.readFileSync(dest, 'utf8').replace(/\r\n/g, '\n') !== expected) throw Error('Shared manifest drift'); }
|
||||
else fs.writeFileSync(dest, expected);
|
||||
console.log(check ? 'PASS: scoring, report UI, copy and capture gates match H5 byte for byte' : 'Synced shared logic from H5 (source files unchanged)');
|
||||
|
||||
Reference in New Issue
Block a user