UNPKG

sandstone-proxy

Version:

An experimental web proxy utilizing sandboxed iframes and no service worker.

8 lines (6 loc) 239 B
import { ctx } from "../context.mjs"; import { parse_css } from "./css.mjs"; export async function rewrite_style(style_element) { let css = style_element.innerHTML; style_element.innerHTML = await parse_css(css, ctx.location.href); }