@codingame/monaco-vscode-api 1.76.8 → 1.76.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/polyfill.js +2 -1
- package/package.json +1 -1
package/dist/polyfill.js
CHANGED
|
@@ -1023,7 +1023,8 @@ function registerAssets(assets) {
|
|
|
1023
1023
|
};
|
|
1024
1024
|
}
|
|
1025
1025
|
function toUrl(name) {
|
|
1026
|
-
|
|
1026
|
+
const url = assetUrls[name] ?? assetUrls[name.replace(/[/.]/g, '_')];
|
|
1027
|
+
return ( new URL(url, window.location.href).toString());
|
|
1027
1028
|
}
|
|
1028
1029
|
const customRequire = {
|
|
1029
1030
|
toUrl
|