From 0074f0e10cc878f192c065c1f0a24247131e0b84 Mon Sep 17 00:00:00 2001 From: Andraxion Date: Sat, 27 Jun 2026 06:55:13 -0400 Subject: [PATCH] Add shared contract launcher link --- src/WorldshaperLauncher.tsx | 13 +++++++++++++ vite.config.ts | 1 + 2 files changed, 14 insertions(+) diff --git a/src/WorldshaperLauncher.tsx b/src/WorldshaperLauncher.tsx index f2a2c02..22d1196 100644 --- a/src/WorldshaperLauncher.tsx +++ b/src/WorldshaperLauncher.tsx @@ -673,6 +673,16 @@ function openRepo(): void { window.location.assign("https://repo.andraxion.net/"); } +function openSharedContractNote(): void { + const noteUrl = new URL("./Future - Shared Contract.html", window.location.href); + const popup = window.open(noteUrl.toString(), "_blank", "noopener,noreferrer"); + if (popup) { + popup.focus(); + return; + } + window.location.assign(noteUrl.toString()); +} + function openAdminPanelWindow(): boolean { const nextUrl = new URL(window.location.href); nextUrl.searchParams.set("admin", "requests"); @@ -1354,6 +1364,9 @@ function WorldshaperLauncher() { + diff --git a/vite.config.ts b/vite.config.ts index bbfed1e..6d59436 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -28,6 +28,7 @@ export default defineConfig({ rollupOptions: { input: { main: resolve(__dirname, "index.html"), + futureSharedContract: resolve(__dirname, "Future - Shared Contract.html"), worldshaperStudio: resolve(__dirname, "worldshaper-studio.html"), worldshaperHeightViewer: resolve(__dirname, "worldshaper-height-viewer.html"), },