1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-27 16:34:10 +02:00
This commit is contained in:
syuilo
2026-04-28 08:46:33 +09:00
parent aed73eb074
commit 7bef2cd8e0
2 changed files with 20 additions and 16 deletions

View File

@@ -63,6 +63,10 @@ onmessage = async (event) => {
engine.scene.onPointerObservable.notifyObservers({ type: BABYLON.PointerEventTypes.POINTERDOWN, event: event.data.ev });
break;
}
case 'call': {
if (engine != null) engine[event.data.fn](...event.data.args);
break;
}
default: {
console.warn('Unrecognized message type:', event.data?.type);
}