Add logging for remote script

This commit is contained in:
Peng-YM 2022-05-18 19:20:13 +08:00
parent 6bb837f74f
commit 8ab2dd17b0
2 changed files with 4 additions and 3 deletions

View File

@ -2824,7 +2824,8 @@ var ProxyUtils = (function () {
// if this is remote script, download it
try {
script = await $downloader.download(url);
script = await $downloader.download(url.split("#")[0]);
$.info(`Script loaded: >>>\n ${script}`);
} catch (err) {
$.error(
`Error when downloading remote script: ${item.args.content}.\n Reason: ${err}`

File diff suppressed because one or more lines are too long