security: replace src
This commit is contained in:
7 files changed
+22
-15
No files matched your search
@@ -60,7 +60,9 @@
|
||||
})
|
||||
|
||||
async function checkInstance() {
|
||||
const type = await BaseClient.fetchInfo(instanceToURL(form.instance))
|
||||
const type = await BaseClient.fetchInfo(
|
||||
new URL(instanceToURL(form.instance)),
|
||||
)
|
||||
if (type == null) throw Error('not_live_supported')
|
||||
form.client = type?.type
|
||||
}
|
||||
|
||||
@@ -39,7 +39,9 @@
|
||||
})
|
||||
|
||||
async function checkInstance() {
|
||||
const type = await BaseClient.fetchInfo(instanceToURL(form.instance))
|
||||
const type = await BaseClient.fetchInfo(
|
||||
new URL(instanceToURL(form.instance)),
|
||||
)
|
||||
if (type == null) throw Error('not_live_supported')
|
||||
form.client = type?.type
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user