mirror of
https://github.com/discourse/discourse.git
synced 2025-03-03 21:47:31 +08:00
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:
parent
ac80109705
commit
9debfed060
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user