瀏覽代碼

Fix up some paths in the cross-domain example

Alexandru Dima 9 年之前
父節點
當前提交
0b49ac28c5
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      README.md

+ 4 - 4
README.md

@@ -71,7 +71,7 @@ If you are hosting your `.js` on a different domain (e.g. on a CDN) than the HTM
 <!--
 	Assuming the HTML lives on www.mydomain.com and that the editor is hosted on www.mycdn.com
 -->
-<script type="text/javascript" src="http://www.mycdn.com/monaco-editor/vs/loader.js"></script>
+<script type="text/javascript" src="http://www.mycdn.com/monaco-editor/min/vs/loader.js"></script>
 <script>
 	require.config({ paths: { 'vs': 'http://www.mycdn.com/monaco-editor/min/vs' }});
 
@@ -93,9 +93,9 @@ If you are hosting your `.js` on a different domain (e.g. on a CDN) than the HTM
 <!--
 	Create http://www.mydomain.com/monaco-editor-worker-loader-proxy.js with the following content:
 		self.MonacoEnvironment = {
-			baseUrl: 'http://www.mycdn.com/monaco-editor/'
+			baseUrl: 'http://www.mycdn.com/monaco-editor/min/'
 		};
-		importScripts('www.mycdn.com/monaco-editor/vs/base/worker/workerMain.js');
+		importScripts('www.mycdn.com/monaco-editor/min/vs/base/worker/workerMain.js');
 	That's it. You're good to go! :)
 -->
 ```
@@ -136,4 +136,4 @@ Create a Monarch tokenizer [here](https://microsoft.github.io/monaco-editor/mona
 > A: It is an AMD loader that we use in VS Code. Yes.
 
 ## License
-[MIT](https://github.com/Microsoft/monaco-editor/blob/master/LICENSE.md)
+[MIT](https://github.com/Microsoft/monaco-editor/blob/master/LICENSE.md)