mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 22:40:01 -04:00
get rid of eslint errors, seemingly without things breaking this time
This commit is contained in:
parent
fd7cec815c
commit
f8bcd5ae08
22 changed files with 34 additions and 40 deletions
|
@ -5,16 +5,12 @@ import {
|
|||
unrewriteUrl,
|
||||
htmlRules,
|
||||
unrewriteHtml,
|
||||
unrewriteBlob,
|
||||
} from "../../shared";
|
||||
import {
|
||||
rewriteUrl,
|
||||
rewriteCss,
|
||||
rewriteHtml,
|
||||
rewriteJs,
|
||||
rewriteSrcset,
|
||||
} from "../../shared";
|
||||
import type { URLMeta } from "../../shared/rewriters/url";
|
||||
|
||||
export default function (client: ScramjetClient, self: typeof window) {
|
||||
const _nativeGetAttribute = self.Element.prototype.getAttribute;
|
||||
|
@ -140,7 +136,7 @@ export default function (client: ScramjetClient, self: typeof window) {
|
|||
});
|
||||
client.Proxy("Element.prototype.setAttributeNS", {
|
||||
apply(ctx) {
|
||||
const [namespace, name, value] = ctx.args;
|
||||
const [_namespace, name, value] = ctx.args;
|
||||
|
||||
const ruleList = htmlRules.find((rule) => {
|
||||
const r = rule[name.toLowerCase()];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue