From 65dc73e90343f6a4a24a022fa11e88de45be31b2 Mon Sep 17 00:00:00 2001 From: MythEclipse Date: Wed, 13 May 2026 22:48:03 +0700 Subject: [PATCH] fix: use Tone.js global object from CDN instead of ES module import - Remove ES module import statement from dashboard.js - Use global Tone object loaded via CDN - Remove type=module from script tag - Fixes module resolution error --- public/dashboard.js | 3 +-- src/web/dashboardPage.tsx | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/public/dashboard.js b/public/dashboard.js index c6a1df3..90252ec 100644 --- a/public/dashboard.js +++ b/public/dashboard.js @@ -1,5 +1,4 @@ -import * as Tone from 'tone'; - +// Tone.js loaded via CDN as global object const bootstrapData = JSON.parse(document.getElementById('__DASHBOARD_DATA__')?.textContent || '{}'); const state = { socket: null, diff --git a/src/web/dashboardPage.tsx b/src/web/dashboardPage.tsx index 413996a..cb0c6f4 100644 --- a/src/web/dashboardPage.tsx +++ b/src/web/dashboardPage.tsx @@ -212,7 +212,7 @@ export function renderDashboardPage(props: DashboardProps): string {
${app}
- + `; }