mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-12 17:49:03 +08:00
Add logging for remote script
This commit is contained in:
parent
6bb837f74f
commit
8ab2dd17b0
@ -2824,7 +2824,8 @@ var ProxyUtils = (function () {
|
|||||||
|
|
||||||
// if this is remote script, download it
|
// if this is remote script, download it
|
||||||
try {
|
try {
|
||||||
script = await $downloader.download(url);
|
script = await $downloader.download(url.split("#")[0]);
|
||||||
|
$.info(`Script loaded: >>>\n ${script}`);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
$.error(
|
$.error(
|
||||||
`Error when downloading remote script: ${item.args.content}.\n Reason: ${err}`
|
`Error when downloading remote script: ${item.args.content}.\n Reason: ${err}`
|
||||||
|
4
backend/sub-store.min.js
vendored
4
backend/sub-store.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user