fix: set __WZP_BASE_URL before loading variant scripts (WASM path resolution)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Submodule warzone-phone updated: 2de6e19956...1d33f3ed4e
@@ -1711,6 +1711,8 @@ async function loadAudioVariant(variant) {
|
||||
if (!file) return null;
|
||||
|
||||
try {
|
||||
// Set base URL so variant scripts resolve WASM imports via /audio/ path
|
||||
window.__WZP_BASE_URL = SERVER + '/audio';
|
||||
const script = document.createElement('script');
|
||||
script.src = SERVER + '/audio/js/' + file;
|
||||
await new Promise((resolve, reject) => {
|
||||
|
||||
@@ -20,5 +20,11 @@ voip.manko.yoga {
|
||||
reverse_proxy wzp-web:8080
|
||||
}
|
||||
|
||||
# WZP WASM module (needed by audio variants loaded from /audio/js/)
|
||||
handle /audio-wasm/* {
|
||||
uri strip_prefix /audio-wasm
|
||||
reverse_proxy wzp-web:8080
|
||||
}
|
||||
|
||||
reverse_proxy warzone-server:7700
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user