1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-06-05 21:49:31 +02:00

Refactor request-analyzer.js

This commit is contained in:
nobody
2021-11-27 08:03:00 +01:00
parent 0d8547970e
commit 5f16f4de7a
3 changed files with 85 additions and 64 deletions

View File

@ -413,6 +413,15 @@ const BadResources = {
'cdnjs.cloudflare.com/ajax/libs/ClientJS/': true,
};
const LogString = {
'PREFIX': '[ LocalCDN ]',
'FONT_AWESOME': 'Font Awesome is not fully supported by your browser.',
'GOOGLE_MATERIAL_ICONS': 'Google Material Icons are not fully supported by your browser.',
'YANDEX': 'Workaround. Disable LocalCDN if website and CDN are the same',
'REPLACED_RESOURCE': 'Replaced resource:',
'MISSING_RESOURCE': 'Missing resource:',
};
// Supported charsets for TextDecoder()
// https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder/TextDecoder
const EncodingTypes = {