mtextylelastedweb / fix_ui.js
ibrohm's picture
Initial deploy via assistant API
7b3aac2 verified
raw
history blame contribute delete
613 Bytes
const fs = require('fs');
let appJs = fs.readFileSync('js/app.js', 'utf8');
appJs = appJs.replace(/href=\"catalog\?/g, 'href="catalog.html?');
fs.writeFileSync('js/app.js', appJs);
let compCss = fs.readFileSync('css/components.css', 'utf8');
compCss = compCss.replace(/\.search-modal-overlay\s*\{[\s\S]*?inset:\s*0;/g, match => match + '\n height: 100vh;\n width: 100vw;');
compCss = compCss.replace(/\.modal-overlay\s*\{[\s\S]*?inset:\s*0;/g, match => match + '\n height: 100vh;\n width: 100vw;');
fs.writeFileSync('css/components.css', compCss);
console.log('Fixed URLs and Modals');