mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-14 15:00:01 -04:00
fix a couple more lint warnings
This commit is contained in:
parent
c75f243866
commit
f6928206f4
3 changed files with 5 additions and 5 deletions
|
@ -12,9 +12,9 @@ import {
|
||||||
import type { URLMeta } from "../../shared/rewriters/url";
|
import type { URLMeta } from "../../shared/rewriters/url";
|
||||||
|
|
||||||
export default function (client: ScramjetClient, self: typeof window) {
|
export default function (client: ScramjetClient, self: typeof window) {
|
||||||
const nativeGetAttribute = self.Element.prototype.getAttribute;
|
const _nativeGetAttribute = self.Element.prototype.getAttribute;
|
||||||
const nativeSetAttribute = self.Element.prototype.setAttribute;
|
const nativeSetAttribute = self.Element.prototype.setAttribute;
|
||||||
const nativeHasAttribute = self.Element.prototype.hasAttribute;
|
const _nativeHasAttribute = self.Element.prototype.hasAttribute;
|
||||||
|
|
||||||
const attrObject = {
|
const attrObject = {
|
||||||
nonce: [self.HTMLElement],
|
nonce: [self.HTMLElement],
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { ScramjetClient } from "../client";
|
import { ScramjetClient } from "../client";
|
||||||
import { decodeUrl, rewriteCss } from "../../shared";
|
import { rewriteCss } from "../../shared";
|
||||||
|
|
||||||
export default function (client: ScramjetClient, self: typeof window) {
|
export default function (client: ScramjetClient, _self: Self) {
|
||||||
client.Proxy("FontFace", {
|
client.Proxy("FontFace", {
|
||||||
construct(ctx) {
|
construct(ctx) {
|
||||||
ctx.args[1] = rewriteCss(ctx.args[1], client.meta);
|
ctx.args[1] = rewriteCss(ctx.args[1], client.meta);
|
||||||
|
|
|
@ -270,7 +270,7 @@ export function rewriteSrcset(srcset: string, meta: URLMeta) {
|
||||||
return rewrittenUrls.join("");
|
return rewrittenUrls.join("");
|
||||||
}
|
}
|
||||||
|
|
||||||
function base64ToBytes(base64) {
|
function _base64ToBytes(base64) {
|
||||||
const binString = atob(base64);
|
const binString = atob(base64);
|
||||||
|
|
||||||
return Uint8Array.from(binString, (m) => m.codePointAt(0));
|
return Uint8Array.from(binString, (m) => m.codePointAt(0));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue