mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-01-02 21:29:12 +01:00
Fixed: HTML filter (#192)
This commit is contained in:
parent
8ef432018e
commit
20d24a8f4e
@ -90,7 +90,7 @@ manipulateDOM._removeCrossOriginAndIntegrityAttr = function (details) {
|
||||
//remove crossorigin and integrity attributes
|
||||
let str = decoder.decode(evt.data, {stream: true}).replace(/<(link|script)[^>]+>/ig, m => {
|
||||
if (cdnDomainsRE.test(m)) {
|
||||
return m.replace(/\s+(integrity|crossorigin)(="[^"]*"|='[^']*'|=[^"'`=\s]+|)/ig, '');
|
||||
return m.replace(/\s+(integrity|crossorigin)(="[^"]*"|='[^']*'|=[^"'`=>\s]+|)/ig, '');
|
||||
}
|
||||
return m;
|
||||
});
|
||||
|
@ -25,7 +25,7 @@
|
||||
New in LocalCDN:
|
||||
</div>
|
||||
<ul>
|
||||
<li></li>
|
||||
<li>Fixed: HTML filter (<a href="https://codeberg.org/nobody/LocalCDN/issues/192">#192</a>)</li>
|
||||
</ul>
|
||||
<div id="generator-section">
|
||||
<div class="topic-label">
|
||||
|
Loading…
Reference in New Issue
Block a user