fix import proxy

This commit is contained in:
velzie 2024-07-31 13:57:52 -04:00
parent 275950387a
commit aafcbeb5e4
No known key found for this signature in database
GPG key ID: 048413F95F0DDE1F
4 changed files with 10 additions and 13 deletions

View file

@ -5,9 +5,7 @@ export default function (client, self) {
return function (url) {
const resolved = new URL(url, base).href;
return function () {}.constructor(
`return import("${encodeUrl(resolved)}")`
)();
return Function(`return import("${encodeUrl(resolved)}")`)();
};
};
}