This commit is contained in:
vet
2026-04-14 12:14:16 +07:00
parent 57edbc4b79
commit 4128760a07

View File

@@ -309,7 +309,12 @@ pc_check_wasm_assets() {
fi
local asset url ct
for asset in openIM.wasm sql-wasm.wasm wasm_exec.js; do
for asset in \
openIM.wasm \
sql-wasm.wasm \
wasm_exec.js \
node_modules/@openim/wasm-client-sdk/lib/worker.js \
node_modules/@openim/wasm-client-sdk/lib/worker-legacy.js; do
url="${origin}/${asset}"
ct=$(curl -fsSI --max-time 5 "$url" 2>/dev/null | awk 'BEGIN{IGNORECASE=1} /^content-type:/ {sub(/\r$/, ""); print $0; exit}' || true)
if [[ -n "$ct" ]] || curl -fsS --max-time 5 -r 0-0 "$url" >/dev/null 2>&1; then