DEV: Disable ACE editor worker blobs

This will allow us to remove `blob:` URLs from the worker-src CSP directive
This commit is contained in:
David Taylor 2020-08-14 12:01:46 +01:00
parent be6a73f654
commit d5463d2a4d
No known key found for this signature in database
GPG Key ID: 46904C18B1D3F434
1 changed files with 2 additions and 0 deletions

View File

@ -74,6 +74,8 @@ export default Component.extend({
loadScript("/javascripts/ace/ace.js").then(() => {
window.ace.require(["ace/ace"], loadedAce => {
loadedAce.config.set("loadWorkerFromBlob", false);
if (!this.element || this.isDestroying || this.isDestroyed) {
return;
}