mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-06-05 21:49:31 +02:00
Fixed: Block Google Fonts if enabled
This commit is contained in:
@ -37,9 +37,9 @@ interceptor.handleRequest = function (requestDetails, tabIdentifier, tab) {
|
||||
// Possible URLs of Google Fonts: https://fonts.googleapis.com/css
|
||||
// https://fonts.googleapis.com/css2
|
||||
if (requestDetails.url.startsWith('https://fonts.googleapis.com/css')) {
|
||||
if(interceptor.blockGoogleFonts !== false && interceptor.blockMissing !== false) {
|
||||
if(interceptor.blockGoogleFonts === true || interceptor.blockMissing === true) {
|
||||
return {
|
||||
'cancel': false
|
||||
'cancel': true
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user