forked from matrix/element-web
make error translatable
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
83653b3a22
commit
942ca3b525
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"Missing indexeddb worker script!": "Missing indexeddb worker script!",
|
||||
"Invalid configuration: can only specify one of default_server_config, default_server_name, or default_hs_url.": "Invalid configuration: can only specify one of default_server_config, default_server_name, or default_hs_url.",
|
||||
"Invalid configuration: no default server specified.": "Invalid configuration: no default server specified.",
|
||||
"Your Riot is misconfigured": "Your Riot is misconfigured",
|
||||
|
|
|
@ -135,7 +135,7 @@ export async function loadApp(fragParams: {}) {
|
|||
// the bundling. The js-sdk will just fall back to accessing
|
||||
// indexeddb directly with no worker script, but we want to
|
||||
// make sure the indexeddb script is present, so fail hard.
|
||||
throw new Error("Missing indexeddb worker script!");
|
||||
throw newTranslatableError(_td("Missing indexeddb worker script!"));
|
||||
}
|
||||
MatrixClientPeg.setIndexedDbWorkerScript(vectorIndexeddbWorkerScript);
|
||||
CallHandler.setConferenceHandler(VectorConferenceHandler);
|
||||
|
|
Loading…
Reference in New Issue