Skip to content

Commit

Permalink
fix: #22 - "Code editor sometimes doesn't load properly."
Browse files Browse the repository at this point in the history
Hopefully fixes.
  • Loading branch information
dsherret committed Jul 4, 2018
1 parent 88a4696 commit 5dd3fde
Show file tree
Hide file tree
Showing 72 changed files with 2,953 additions and 35 deletions.
25 changes: 12 additions & 13 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,19 @@
gtag('js', new Date());
gtag('config', 'UA-55630862-2');
</script>
<!-- monaco editor setup (https://medium.com/@haugboelle/short-guide-to-using-monaco-with-create-react-app-26a1acad8ebe) -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.13.1/min/vs/loader.js"></script>
<!-- monaco editor setup -->
<script src="%PUBLIC_URL%/vs/loader.js"></script>
<script>
require.config({
paths: {
"vs": "https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.13.1/min/vs"
}
});
window.MonacoEnvironment = {
getWorkerUrl: function (workerId, label) {
return "/monaco-editor-worker-loader-proxy.js";
}
};
require(["vs/editor/editor.main"], function () {});
require.config({
paths: {
"vs": "vs"
}
});
window.MonacoEnvironment = {
getWorkerUrl: function (workerId, label) {
return "vs/base/worker/workerMain.js";
}
};
</script>
<!-- end monaco editor setup -->

Expand Down
5 changes: 0 additions & 5 deletions public/monaco-editor-worker-loader-proxy.js

This file was deleted.

161 changes: 161 additions & 0 deletions public/vs/base/worker/workerMain.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions public/vs/basic-languages/bat/bat.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions public/vs/basic-languages/coffee/coffee.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions public/vs/basic-languages/cpp/cpp.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions public/vs/basic-languages/csharp/csharp.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions public/vs/basic-languages/csp/csp.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5dd3fde

Please sign in to comment.