From e04a719140e0033efab8b36bf62f38daeff67fd1 Mon Sep 17 00:00:00 2001 From: Percs <83934299+Percslol@users.noreply.github.com> Date: Sun, 13 Oct 2024 19:22:31 -0500 Subject: [PATCH] feat: add reload button to percury unblocker --- src/controller/frame.ts | 4 ++++ static/ui.js | 20 +++++++++++--------- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/src/controller/frame.ts b/src/controller/frame.ts index 8ad4b18..1b94fcd 100644 --- a/src/controller/frame.ts +++ b/src/controller/frame.ts @@ -30,4 +30,8 @@ export class ScramjetFrame extends EventTarget { forward() { this.frame.contentWindow?.history.forward(); } + + reload() { + this.frame.contentWindow?.location.reload(); + } } diff --git a/static/ui.js b/static/ui.js index 509ed41..c5c57b7 100644 --- a/static/ui.js +++ b/static/ui.js @@ -86,13 +86,13 @@ function Config() { } `; - function handleModalClose(modal) { - modal.style.opacity = 0; - setTimeout(() => { - modal.close(); - modal.style.opacity = 1; - }, 250) - } + function handleModalClose(modal) { + modal.style.opacity = 0; + setTimeout(() => { + modal.close(); + modal.style.opacity = 1; + }, 250); + } return html` @@ -100,8 +100,9 @@ function Config() {
+ connection.setTransport("/libcurl/index.mjs", [ + { wisp: store.wispurl }, + ])}>use libcurl.js
@@ -236,6 +237,7 @@ function App() { + { this.url = e.target.value;