From 5846198eee4af8b31601b7d7701b3165c16a43f8 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 6 Jan 2023 17:19:25 +0900 Subject: [PATCH] enhance(client): provide THIS_ID and THIS_URL vars to aiscript of flash --- packages/frontend/src/pages/flash/flash.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/frontend/src/pages/flash/flash.vue b/packages/frontend/src/pages/flash/flash.vue index 9407f9281..63a1e4703 100644 --- a/packages/frontend/src/pages/flash/flash.vue +++ b/packages/frontend/src/pages/flash/flash.vue @@ -147,6 +147,8 @@ async function run() { ...registerAsUiLib(components, (_root) => { root.value = _root.value; }), + THIS_ID: values.STR(flash.id), + THIS_URL: values.STR(`${url}/play/${flash.id}`), }, { in: (q) => { return new Promise(ok => {