Module import absoluuttiseksi: ./pkg/node.js → /pkg/node.js
Suhteellinen polku rikkoi sivun kun navigoitiin suoraan /avatars/ tai muuhun alihakemistoon (selain yritti ladata /avatars/pkg/node.js jota ei ollut). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1278,7 +1278,7 @@ ZIP-paketti sisältäen:
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script type="module">
|
<script type="module">
|
||||||
import init, { start_agent_node, set_gpu_load, set_auto_tasks } from './pkg/node.js';
|
import init, { start_agent_node, set_gpu_load, set_auto_tasks } from '/pkg/node.js';
|
||||||
|
|
||||||
// HTML-escape kaikelle käyttäjä-/backendidatalle joka menee innerHTML:ään
|
// HTML-escape kaikelle käyttäjä-/backendidatalle joka menee innerHTML:ään
|
||||||
function esc(str) {
|
function esc(str) {
|
||||||
|
|||||||
Reference in New Issue
Block a user