Skip to content

Commit

Permalink
Update flash.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
FineArchs authored Aug 21, 2024
1 parent be211fc commit 48e3c7f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/frontend/src/pages/flash/flash.vue
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ const parser = new Parser();

const started = ref(false);
const aiscript = shallowRef<Interpreter | null>(null);
const root = ref<AsUiRoot>();
const components = ref<Map<string, Ref<AsUiComponent>>>(new Map());

function start() {
Expand All @@ -195,9 +194,7 @@ async function run() {
...createAiScriptEnv({
storageKey: 'flash:' + flash.value.id,
}),
...registerAsUiLib(components.value, (_root) => {
root.value = _root.value;
}),
...registerAsUiLib(components.value),
THIS_ID: values.STR(flash.value.id),
THIS_URL: values.STR(`${url}/play/${flash.value.id}`),
}, {
Expand Down

0 comments on commit 48e3c7f

Please sign in to comment.