mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 19:53:53 -06:00
b69c2f7311
When we are calling the loadLibs function, which in turn calls: importScripts(settings.mozjpeg_script); importScripts(settings.resize_script); For the media-optimization-worker service worker, we are getting an error in Firefox, which balks at wasm_bindgen, a global variable defined with let, being redefined when the module loads. This causes image processing to fail in Firefox when more than one image is uploaded at a time. The solution to this is to just check whether the scripts are already imported, and if so do not import them again. Chrome doesn't seem to care about this variable redefinition and does not error, and it seems to be expected behaviour that the script can be loaded multiple times (see https://github.com/w3c/ServiceWorker/issues/1041) |
||
---|---|---|
.. | ||
@json-editor/json-editor/2.5.2 | ||
ace | ||
ace.js/1.4.12 | ||
chart.js/3.5.1 | ||
chartjs-plugin-datalabels/2.0.0 | ||
diffhtml/1.0.0-beta.20 | ||
magnific-popup/1.1.0 | ||
pikaday/1.8.0 | ||
spectrum-colorpicker/1.8.0 | ||
squoosh | ||
workbox | ||
Chart.min.js | ||
chartjs-plugin-datalabels.min.js | ||
count.js | ||
diffhtml.min.js | ||
embed-topics.js | ||
embed.js | ||
jquery.magnific-popup.min.js | ||
media-optimization-worker.js | ||
pikaday.js | ||
spectrum.css | ||
spectrum.js |