UNPKG

sandstone-proxy

Version:

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

11 lines (10 loc) 304 B
import { known_urls } from "../network.mjs"; export class FakeURL extends URL { constructor(url, base) { url = url instanceof URL ? url.href : url; base = base instanceof URL ? base.href : base; url = known_urls[url] || url; base = known_urls[base] || base; super(url, base); } }