promo! csp

This commit is contained in:
Zakhar 2026-08-21 18:24:13 +03:00
parent baba9b9263
commit f0ffd89860
3 changed files with 2 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -11,6 +11,6 @@ const cfg = {
keep_ssi_comments: false, keep_ssi_comments: false,
}; };
fs.writeFileSync('autocart.js', JavascriptObfuscator.obfuscate(fs.readFileSync('src/autocart.js').toString()).getObfuscatedCode()); fs.writeFileSync('autocart.js', JavascriptObfuscator.obfuscate(fs.readFileSync('src/autocart.js').toString().replace('https://local.hvatilo.ru:8055', 'https://hvatilo.ru')).getObfuscatedCode());
fs.writeFileSync('index.html', lib.minify(fs.readFileSync('src/index.html'), cfg)); fs.writeFileSync('index.html', lib.minify(fs.readFileSync('src/index.html'), cfg));
fs.writeFileSync('auto_cart.html', lib.minify(fs.readFileSync('src/auto_cart.html'), cfg)); fs.writeFileSync('auto_cart.html', lib.minify(fs.readFileSync('src/auto_cart.html'), cfg));

View File

@ -1,4 +1,3 @@
// const host = 'https://hvatilo.ru';
const host = 'https://local.hvatilo.ru:8055'; const host = 'https://local.hvatilo.ru:8055';
// Returns a function, that, when invoked, will only be triggered at most once // Returns a function, that, when invoked, will only be triggered at most once