Skip to content

Commit

Permalink
Use cloudflare (#781)
Browse files Browse the repository at this point in the history
  • Loading branch information
garyluu authored Sep 6, 2019
1 parent 327a8b3 commit 1fb29da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
7 changes: 1 addition & 6 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,7 @@
"assets": [
"src/assets",
"src/favicon.ico",
"src/manifest.json",
{
"glob": "worker-json.js",
"input": "./node_modules/ace-builds/src-min-noconflict",
"output": "/"
}
"src/manifest.json"
],
"styles": [
"node_modules/bootstrap/dist/css/bootstrap.css",
Expand Down
1 change: 1 addition & 0 deletions src/app/shared/code-editor/code-editor.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export class CodeEditorComponent implements AfterViewInit {

ngAfterViewInit() {
const aceMode = 'ace/mode/' + this.mode;
ace.config.set('workerPath', 'https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.4/');
this.editor = ace.edit(this.aceId, {
mode: aceMode,
readOnly: this.readOnly,
Expand Down

0 comments on commit 1fb29da

Please sign in to comment.