add epoxy info function

This commit is contained in:
Toshit Chawda 2024-08-08 13:01:39 -07:00
parent 569789c2a0
commit 72d43508d0
No known key found for this signature in database
GPG key ID: 91480ED99E2B3D9D
5 changed files with 19 additions and 4 deletions

View file

@ -1,4 +1,4 @@
import initEpoxy, { EpoxyClient, EpoxyClientOptions, EpoxyHandlers } from "./pkg/epoxy-bundled.js";
import initEpoxy, { EpoxyClient, EpoxyClientOptions, EpoxyHandlers, info as epoxyInfo } from "./pkg/epoxy-bundled.js";
(async () => {
const params = (new URL(location.href)).searchParams;
@ -40,6 +40,7 @@ import initEpoxy, { EpoxyClient, EpoxyClientOptions, EpoxyHandlers } from "./pkg
console.log(epoxy_client);
// you can change the user agent and redirect limit in JS
epoxy_client.redirect_limit = 15;
console.log(epoxyInfo());
const test_mux = async (url) => {
const t0 = performance.now();