mirror of
https://github.com/discourse/discourse.git
synced 2025-06-15 20:02:11 +08:00
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:
@ -74,6 +74,8 @@ export default Component.extend({
|
|||||||
|
|
||||||
loadScript("/javascripts/ace/ace.js").then(() => {
|
loadScript("/javascripts/ace/ace.js").then(() => {
|
||||||
window.ace.require(["ace/ace"], loadedAce => {
|
window.ace.require(["ace/ace"], loadedAce => {
|
||||||
|
loadedAce.config.set("loadWorkerFromBlob", false);
|
||||||
|
|
||||||
if (!this.element || this.isDestroying || this.isDestroyed) {
|
if (!this.element || this.isDestroying || this.isDestroyed) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user