run prettier

This commit is contained in:
Alex Dima 2021-10-08 18:37:20 +02:00
parent 107e6c27b8
commit e56acf710a
No known key found for this signature in database
GPG key ID: 39563C1504FDD0C9

View file

@ -14,19 +14,21 @@
// Allow monaco-editor to load scripts from its own paths only
var scriptLoadingPolicy = {
createScriptURL: function allowOnlyMonacoPaths(url) {
if (url.indexOf('../node_modules/monaco-editor/min/vs/') === 0 &&
url.lastIndexOf('..') == 0) {
if (
url.indexOf('../node_modules/monaco-editor/min/vs/') === 0 &&
url.lastIndexOf('..') == 0
) {
return url;
}
}
};
// If browser supports Trusted Types, use them.
if (typeof trustedTypes !== "undefined") {
if (typeof trustedTypes !== 'undefined') {
scriptLoadingPolicy = trustedTypes.createPolicy('monaco-editor', scriptLoadingPolicy);
}
require.config({
paths: { vs: '../node_modules/monaco-editor/min/vs' },
trustedTypesPolicy: scriptLoadingPolicy,
trustedTypesPolicy: scriptLoadingPolicy
});
require(['vs/editor/editor.main'], function () {