Skip to content

Commit

Permalink
chore(demo): 修复playground editor 报错
Browse files Browse the repository at this point in the history
  • Loading branch information
Jino Liu committed May 1, 2023
1 parent e8d6580 commit 19514df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/demo/demo-v3/src/pages/index/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
getWorkerUrl: function(workerId, label) {
const code = encodeURIComponent(`
self.MonacoEnvironment = {
baseUrl: 'https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/monaco-editor/0.20.0/min/'
baseUrl: 'https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/monaco-editor/0.30.0/min/'
};
importScripts('https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/monaco-editor/0.20.0/min/vs/base/worker/workerMain.js');
importScripts('https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/monaco-editor/0.30.0/min/vs/base/worker/workerMain.js');
`);

return 'data:text/javascript;charset=utf-8,' + code;
Expand Down

0 comments on commit 19514df

Please sign in to comment.