mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 14:30:02 -04:00
feat: add reload button to percury unblocker
This commit is contained in:
parent
2512c86496
commit
e04a719140
2 changed files with 15 additions and 9 deletions
|
@ -30,4 +30,8 @@ export class ScramjetFrame extends EventTarget {
|
||||||
forward() {
|
forward() {
|
||||||
this.frame.contentWindow?.history.forward();
|
this.frame.contentWindow?.history.forward();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
reload() {
|
||||||
|
this.frame.contentWindow?.location.reload();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -91,7 +91,7 @@ function Config() {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
modal.close();
|
modal.close();
|
||||||
modal.style.opacity = 1;
|
modal.style.opacity = 1;
|
||||||
}, 250)
|
}, 250);
|
||||||
}
|
}
|
||||||
|
|
||||||
return html`
|
return html`
|
||||||
|
@ -100,7 +100,8 @@ function Config() {
|
||||||
<div class=${[flex, "buttons"]}>
|
<div class=${[flex, "buttons"]}>
|
||||||
<button on:click=${() => connection.setTransport("/baremod/index.mjs", [store.bareurl])}>use bare server 3</button>
|
<button on:click=${() => connection.setTransport("/baremod/index.mjs", [store.bareurl])}>use bare server 3</button>
|
||||||
<button on:click=${() =>
|
<button on:click=${() =>
|
||||||
connection.setTransport("/libcurl/index.mjs", [{wisp: store.wispurl},
|
connection.setTransport("/libcurl/index.mjs", [
|
||||||
|
{ wisp: store.wispurl },
|
||||||
])}>use libcurl.js</button>
|
])}>use libcurl.js</button>
|
||||||
<button on:click=${() => connection.setTransport("/epoxy/index.mjs", [{ wisp: store.wispurl }])}>use epoxy</button>
|
<button on:click=${() => connection.setTransport("/epoxy/index.mjs", [{ wisp: store.wispurl }])}>use epoxy</button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -236,6 +237,7 @@ function App() {
|
||||||
<button on:click=${() => cfg.showModal()}>config</button>
|
<button on:click=${() => cfg.showModal()}>config</button>
|
||||||
<button on:click=${() => frame.back()}><-</button>
|
<button on:click=${() => frame.back()}><-</button>
|
||||||
<button on:click=${() => frame.forward()}>-></button>
|
<button on:click=${() => frame.forward()}>-></button>
|
||||||
|
<button on:click=${() => frame.reload()}>↻</button>
|
||||||
|
|
||||||
<input class="bar" bind:value=${use(this.url)} on:input=${(e) => {
|
<input class="bar" bind:value=${use(this.url)} on:input=${(e) => {
|
||||||
this.url = e.target.value;
|
this.url = e.target.value;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue