mirror of
https://github.com/discourse/discourse.git
synced 2025-02-08 04:18:23 +00:00
995c514336
Occasionally there will be a misconfigured CORS rule or a different network failure when loading one of the media optimization WASM scripts. This commit handles load failures and sends a new installFailed message from the service worker, so that we don't error and hold up the rest of the uploads if this occurs; the worker will just not process anything and will keep trying to install itself with subsequent uploads until it succeeds. This commit also removes the redundant useUppy variable in the worker this should have been removed a while ago in f70e6c302fddd38595a1fc90e24964a2cb0716bb