From 8d12600e0a64d7c759baec762050c998f0bbf486 Mon Sep 17 00:00:00 2001 From: Arianrhod Sandlot Date: Thu, 23 Jan 2025 10:37:15 +0800 Subject: [PATCH] fix: fix the exit method not working --- playground/activate.ts | 4 ++++ playground/index.html | 1 + src/classes/emulator-file-system.ts | 4 ---- src/classes/emulator.ts | 2 -- tests/e2e/instance-ra-common.ts | 26 ++++++++++++++++++++++++++ 5 files changed, 31 insertions(+), 6 deletions(-) diff --git a/playground/activate.ts b/playground/activate.ts index 45c2ab7..22eddb7 100644 --- a/playground/activate.ts +++ b/playground/activate.ts @@ -106,6 +106,10 @@ const handlers = { exit() { nostalgist.exit() }, + + exitWithoutRemovingCanvas() { + nostalgist.exit({ removeCanvas: false }) + }, } export function activate(mod: typeof Nostalgist_) { diff --git a/playground/index.html b/playground/index.html index 66eb588..040e9fc 100644 --- a/playground/index.html +++ b/playground/index.html @@ -64,6 +64,7 @@

Instance Methods

+