mirror of
https://github.com/DustinBrett/daedalOS.git
synced 2025-12-06 12:20:20 +01:00
Remove ms vendor prefixes
This commit is contained in:
parent
91f4100010
commit
f0d6630cb6
|
|
@ -42,7 +42,15 @@ if (!commit) {
|
|||
|
||||
const CODE_REPLACE_FUNCTIONS = [
|
||||
(html) => html.replace(/<noscript (.*)><\/noscript>/, ""),
|
||||
(html) => html.replace(/><\/path>/, "/>"),
|
||||
(html) => html.replace(/><\/path>/g, "/>"),
|
||||
(html) => {
|
||||
const [style] = html.match(/<style[\s\S]+>[\s\S]+<\/style>/);
|
||||
|
||||
return html.replace(
|
||||
style,
|
||||
style.replace(/(?:-ms-[^:;{}]+|[^:;{}]+:-ms-)[^;{}]+;/g, "")
|
||||
);
|
||||
},
|
||||
(html) =>
|
||||
html.replace(
|
||||
/<script crossorigin="" defer src=\/_next\/static\/chunks\/polyfills-[a-zA-Z0-9-_]+.js nomodule=""><\/script>/,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user