discourse/public/javascripts
Martin Brennan b69c2f7311
DEV: Fix wasm_bindgen double loading errors in Firefox (#14630)
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)
2021-10-18 15:47:50 +10:00
..
@json-editor/json-editor/2.5.2 DEV: Add experimental json_scheme site setting type (#12226) 2021-03-01 09:15:17 -05:00
ace DEV: Upgrade ACE Editor to 1.4.12, remove extra ACE files (#10431) 2020-08-13 21:53:27 -04:00
ace.js/1.4.12 DEV - write JS files to versioned subdirectories (#10707) 2020-09-21 15:06:56 -04:00
chart.js/3.5.1 DEV: updates chart.js to 3.5.1 (#14107) 2021-08-23 13:49:49 +02:00
chartjs-plugin-datalabels/2.0.0 DEV: updates chart.js to 3.5.1 (#14107) 2021-08-23 13:49:49 +02:00
diffhtml/1.0.0-beta.20 FIX: Resolve short URLs after diffHTML was loaded (#14296) 2021-09-09 16:25:58 +03:00
magnific-popup/1.1.0 DEV - write JS files to versioned subdirectories (#10707) 2020-09-21 15:06:56 -04:00
pikaday/1.8.0 DEV - write JS files to versioned subdirectories (#10707) 2020-09-21 15:06:56 -04:00
spectrum-colorpicker/1.8.0 DEV - write JS files to versioned subdirectories (#10707) 2020-09-21 15:06:56 -04:00
squoosh FEATURE: Optimize images before upload (#13432) 2021-06-23 12:31:12 -03:00
workbox DEV: enable CORS to all CDN get requests from workbox. (#11896) 2021-02-02 11:38:29 +05:30
Chart.min.js DEV: Update chart.js from 2.9.3 to 2.9.4 (#13026) 2021-05-12 17:28:16 +02:00
chartjs-plugin-datalabels.min.js FEATURE: Poll breakdown 2.0 (#10345) 2020-08-06 17:57:06 +02:00
count.js FIX: More safety when displaying link counts on blogs 2014-05-20 15:20:33 -04:00
diffhtml.min.js FIX: Resolve short URLs after diffHTML was loaded (#14296) 2021-09-09 16:25:58 +03:00
embed-topics.js FIX: The attribute is discourse-url not data-discourse-url 2020-10-28 17:12:29 -04:00
embed.js FEATURE: Use "no-referrer-when-downgrade" as our embed policy 2020-10-16 13:23:06 -04:00
jquery.magnific-popup.min.js Use image gallery feature of magnific 2017-04-25 11:23:15 +09:00
media-optimization-worker.js DEV: Fix wasm_bindgen double loading errors in Firefox (#14630) 2021-10-18 15:47:50 +10:00
pikaday.js DEV: pikaday 1.8.0 (#7536) 2019-05-13 15:09:04 +02:00
spectrum.css Use Yarn to manage dependencies, cleanup unused bootstrap libs (#6436) 2018-10-03 10:15:43 -04:00
spectrum.js Update moment and spectrum 2020-01-06 12:56:47 -05:00