File tree 2 files changed +12
-12
lines changed
src/vs/code/browser/workbench
2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 42
42
< script src ="./static/out/vs/loader.js "> </ script >
43
43
< script src ="./static/out/vs/webPackagePaths.js "> </ script >
44
44
< script >
45
- const baseUrl = new URL ( window . location . href ) ;
46
- baseUrl . search = '' ;
47
- baseUrl . hash = '' ;
48
-
45
+ /**
46
+ * Updated to use relative path.
47
+ * @author coder
48
+ */
49
49
Object . keys ( self . webPackagePaths ) . map ( function ( key , index ) {
50
- self . webPackagePaths [ key ] = ` ${ baseUrl . href } static/remote/web/node_modules/${ key } /${ self . webPackagePaths [ key ] } `;
50
+ self . webPackagePaths [ key ] = new URL ( `./ static/remote/web/node_modules/${ key } /${ self . webPackagePaths [ key ] } `, window . location . href ) . toString ( ) ;
51
51
} ) ;
52
52
require . config ( {
53
- baseUrl : ` ${ baseUrl . href } static/out` ,
53
+ baseUrl : new URL ( './ static/out' , window . location . href ) . toString ( ) ,
54
54
recordStats : true ,
55
55
trustedTypesPolicy : window . trustedTypes ?. createPolicy ( 'amdLoader' , {
56
56
createScriptURL ( value ) {
Original file line number Diff line number Diff line change 41
41
< script src ="./static/out/vs/loader.js "> </ script >
42
42
< script src ="./static/out/vs/webPackagePaths.js "> </ script >
43
43
< script >
44
- const baseUrl = new URL ( window . location . href ) ;
45
- baseUrl . search = '' ;
46
- baseUrl . hash = '' ;
47
-
44
+ /**
45
+ * Updated to use relative path.
46
+ * @author coder
47
+ */
48
48
Object . keys ( self . webPackagePaths ) . map ( function ( key , index ) {
49
- self . webPackagePaths [ key ] = ` ${ baseUrl . href } static/node_modules/${ key } /${ self . webPackagePaths [ key ] } `;
49
+ self . webPackagePaths [ key ] = new URL ( `./ static/node_modules/${ key } /${ self . webPackagePaths [ key ] } `, window . location . href ) . toString ( ) ;
50
50
} ) ;
51
51
require . config ( {
52
- baseUrl : ` ${ baseUrl . href } static/out` ,
52
+ baseUrl : new URL ( './ static/out' , window . location . href ) . toString ( ) ,
53
53
recordStats : true ,
54
54
trustedTypesPolicy : window . trustedTypes ?. createPolicy ( 'amdLoader' , {
55
55
createScriptURL ( value ) {
You can’t perform that action at this time.
0 commit comments