fix: scramjet git commit hard link

This commit is contained in:
Percs 2024-10-28 14:01:39 -05:00
parent bacbc7e11e
commit 25ad5aff90
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,6 @@ import { rewriteUrl } from "../../shared";
import { ScramjetClient } from "../client";
export default function (client: ScramjetClient, self: typeof globalThis) {
//TODO: this doesnt support request objects, do that later (i dont feel like it)
client.Proxy("CacheStorage.prototype.open", {
apply(ctx) {
ctx.args[0] = `${client.url.origin}@${ctx.args[0]}`;

View file

@ -228,6 +228,7 @@ function BrowserApp() {
const cfg = h(Config);
document.body.appendChild(cfg);
this.githubURL = `https://github.com/MercuryWorkshop/scramjet/tree/${$scramjet.version.build}`;
return html`
<div>
@ -245,7 +246,7 @@ function BrowserApp() {
<button on:click=${() => window.open(scramjet.encodeUrl(this.url))}>open</button>
<p class="version">
<b>scramjet</b> ${$scramjet.version.version} <a href="https://github.com/MercuryWorkshop/scramjet/tree/${$scramjet.version.build}">${$scramjet.version.build}</a>
<b>scramjet</b> ${$scramjet.version.version} <a href=${use(this.githubURL)}>${$scramjet.version.build}</a>
</p>
</div>
${frame.frame}