Redirect to placeholder CSS file for blocked Google Fonts (#763)
This commit is contained in:
parent
0f6f3f2bcf
commit
e030872084
|
@ -61,7 +61,7 @@ interceptor.handleRequest = function (requestDetails, tabIdentifier, tab) {
|
|||
// Check if the website is allowed to load Google Fonts
|
||||
if (interceptor.blockGoogleFonts === true && isListed === false) {
|
||||
return {
|
||||
'cancel': true
|
||||
'redirectUrl': chrome.runtime.getURL('resources/placeholder.css')
|
||||
};
|
||||
} else if (interceptor.blockGoogleFonts === false || isListed === true) {
|
||||
return {
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
<p>Improved</p>
|
||||
<ul>
|
||||
<li>Correct redirection for jquery-latest.js and code.jquery.com (<a href="https://codeberg.org/nobody/LocalCDN/issues/761">#761</a>)</li>
|
||||
<li>Redirect to placeholder CSS file for blocked Google Fonts (<a href="https://codeberg.org/nobody/LocalCDN/issues/763">#763</a>)</li>
|
||||
</ul>
|
||||
<p>Added</p>
|
||||
<ul>
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
/*
|
||||
* Just a placeholder for Google Fonts requests
|
||||
* Belongs to LocalCDN
|
||||
*
|
||||
* @author nobody
|
||||
* @since 2021-11-10
|
||||
*/
|
Loading…
Reference in New Issue