get rid of eslint errors, seemingly without things breaking this time

This commit is contained in:
wearrrrr 2024-11-10 14:41:49 -06:00
parent fd7cec815c
commit f8bcd5ae08
22 changed files with 34 additions and 40 deletions

View file

@ -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()];