const fs = require('fs');

try {
    let html = fs.readFileSync('index.html', 'utf8');
    html = html.replace(/<script src="error_logger\.js\?v=\d+"><\/script>/g, '');
    fs.writeFileSync('index.html', html, 'utf8');
    console.log("Removed error_logger from index.html!");
} catch (e) {
    console.error(e);
}
