Skip to content

Commit

Permalink
Merge pull request #295 from lljj-x/v3
Browse files Browse the repository at this point in the history
chore(demo): 修复playground editor 报错
  • Loading branch information
lljj-x committed May 1, 2023
2 parents a8064d5 + 19514df commit e04edf9
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 e04edf9

Please sign in to comment.