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
This commit is contained in:
MythEclipse
2026-05-13 22:48:03 +07:00
parent bc212333d8
commit 65dc73e903
2 changed files with 2 additions and 3 deletions

View File

@@ -212,7 +212,7 @@ export function renderDashboardPage(props: DashboardProps): string {
<body>
<div id="root">${app}</div>
<script id="__DASHBOARD_DATA__" type="application/json">${bootstrap}</script>
<script type="module" src="/dashboard.js"></script>
<script src="/dashboard.js" defer></script>
</body>
</html>`;
}