Move away from browser as a main plataform

This commit is contained in:
2026-11-22 21:38:12 -03:00
parent cbd662dc2a
commit 90dd86b336
12 changed files with 166 additions and 150 deletions
-2
View File
@@ -4,7 +4,6 @@
// the client in a browser page, see platform.ts
import type { Platform } from "./platform.ts";
import { render_debug } from "./renderer/mod.ts";
import { confirm_mods } from "./confirm_mods.ts";
import { CreditsScreen } from "./gui/credits_screen.ts";
import { is_mouse_grabbed, set_mouse_grabbed, take_lost_pointer_lock, toggle_fullscreen } from "./browser_input.ts";
@@ -103,7 +102,6 @@ export const browser_platform: Platform = {
self.onbeforeunload = confirm ? (event) => event.preventDefault() : null;
},
show_fatal_error,
confirm_mods,
credits_screen: (on_back) => new CreditsScreen(on_back),
read_clipboard: () =>
navigator.clipboard ? navigator.clipboard.readText() : Promise.reject(new Error("No clipboard")),