|
39 | 39 | <body aria-label=""></body>
|
40 | 40 |
|
41 | 41 | <!-- Startup (do not modify order of script tags!) -->
|
42 |
| - <script> |
43 |
| - const normalize = (url, keepTrailing = false) => { |
44 |
| - return url.replace(/\/\/+/g, "/").replace(/\/+$/, keepTrailing ? "/" : "") |
45 |
| - } |
46 |
| - |
47 |
| - const resolveBase = (base) => { |
48 |
| - // After resolving the base will either start with / or be an empty string. |
49 |
| - if (!base || base.startsWith("/")) { |
50 |
| - return base ?? "" |
51 |
| - } |
52 |
| - const parts = location.pathname.split("/") |
53 |
| - parts[parts.length - 1] = base |
54 |
| - const url = new URL(location.origin + "/" + parts.join("/")) |
55 |
| - return normalize(url.pathname) |
56 |
| - } |
57 |
| - |
58 |
| - const base = resolveBase("{{CS_STATIC_BASE}}") |
59 |
| - |
60 |
| - self.require = { |
61 |
| - // Without the full URL VS Code will try to load file://. |
62 |
| - baseUrl: `${window.location.origin}${base}/lib/vscode/out`, |
63 |
| - recordStats: true, |
64 |
| - paths: { |
65 |
| - "vscode-textmate": `../node_modules/vscode-textmate/release/main`, |
66 |
| - "vscode-oniguruma": `../node_modules/vscode-oniguruma/release/main`, |
67 |
| - xterm: `../node_modules/xterm/lib/xterm.js`, |
68 |
| - "xterm-addon-search": `../node_modules/xterm-addon-search/lib/xterm-addon-search.js`, |
69 |
| - "xterm-addon-unicode11": `../node_modules/xterm-addon-unicode11/lib/xterm-addon-unicode11.js`, |
70 |
| - "xterm-addon-webgl": `../node_modules/xterm-addon-webgl/lib/xterm-addon-webgl.js`, |
71 |
| - "tas-client-umd": `../node_modules/tas-client-umd/lib/tas-client-umd.js`, |
72 |
| - "iconv-lite-umd": `../node_modules/iconv-lite-umd/lib/iconv-lite-umd.js`, |
73 |
| - jschardet: `../node_modules/jschardet/dist/jschardet.min.js`, |
74 |
| - }, |
75 |
| - } |
76 |
| - </script> |
77 | 42 | <script data-cfasync="false" src="{{CS_STATIC_BASE}}/out/browser/register.browserified.js"></script>
|
78 | 43 | <script data-cfasync="false" src="{{CS_STATIC_BASE}}/out/browser/pages/vscode.browserified.js"></script>
|
79 | 44 | <script data-cfasync="false" src="{{CS_STATIC_BASE}}/lib/vscode/out/vs/loader.js"></script>
|
|
0 commit comments