Spaces:
Sleeping
Sleeping
File size: 613 Bytes
7b3aac2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 | 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');
|