mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-03 01:42:50 +08:00
Web: smaller review fixes (A10-A19, S10, S11, lint)
- A10: drop labels of unimplemented shortcuts, localize "Ctrl", never fire shortcuts (Ctrl+D!) while typing in a field - A11: in-memory localStorage stand-in when storage is blocked instead of a blank page - A12: invite link falls back to selecting the text without clipboard API - A13: AEC3 script honors BASE_URL, failed loads are retried - A14: shared downloadBlob helper, object URLs revoked with a delay - A15: remaining hardcoded German/English strings moved to the locales - A16: broken soundpack files show an error instead of failing silently - A17: connect buttons no longer pass the click event as overrides - A18: design base persisted from the resolved theme - A19: no audio send() while the socket is still connecting - S10: privilege keys are no longer persisted in localStorage - S11: share links can carry the token in the fragment (#token=) - oxlint: 0 warnings Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
This commit is contained in:
1 parent
034be9cc77
commit
eba1e1af92
12 files changed
+182
-98
No files matched your search
+11
-4
@@ -37,10 +37,17 @@ function loadScript(src: string): Promise<void> {
|
||||
|
||||
function loadModule(): Promise<Aec3Module> {
|
||||
if (!modulePromise) {
|
||||
modulePromise = loadScript("/vendor/webrtcaec3.js").then(() => {
|
||||
if (!window.WebRtcAec3) throw new Error("AEC3 script loaded but did not register window.WebRtcAec3");
|
||||
return window.WebRtcAec3();
|
||||
});
|
||||
// BASE_URL keeps sub-path deployments (VITE_BASE_PATH) working; a failed
|
||||
// load is forgotten so the next attempt retries instead of reusing it.
|
||||
modulePromise = loadScript(`${import.meta.env.BASE_URL}vendor/webrtcaec3.js`)
|
||||
.then(() => {
|
||||
if (!window.WebRtcAec3) throw new Error("AEC3 script loaded but did not register window.WebRtcAec3");
|
||||
return window.WebRtcAec3();
|
||||
})
|
||||
.catch((err) => {
|
||||
modulePromise = null;
|
||||
throw err;
|
||||
});
|
||||
}
|
||||
return modulePromise;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user