FIX: Add cache-busting parameter to ace-editor javascript

Long-term we should consider adding the file hash to javascript URLs, so that the URL changes whenever the file changes
This commit is contained in:
David Taylor 2020-08-24 12:29:46 +01:00
parent ac80109705
commit 9debfed060
No known key found for this signature in database
GPG Key ID: 46904C18B1D3F434

View File

@ -81,7 +81,7 @@ export default Component.extend({
didInsertElement() {
this._super(...arguments);
loadScript("/javascripts/ace/ace.js").then(() => {
loadScript("/javascripts/ace/ace.js?v=1.4.12").then(() => {
window.ace.require(["ace/ace"], loadedAce => {
loadedAce.config.set("loadWorkerFromBlob", false);
loadedAce.config.set("workerPath", getURL("/javascripts/ace")); // Do not use CDN for workers