mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
formatting
This commit is contained in:
@@ -398,7 +398,6 @@ async function canResolve(name, useIPv6 = true, useIPv4 = true) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// If we need to check IPv4 resolution
|
|
||||||
if (useIPv4) {
|
if (useIPv4) {
|
||||||
try {
|
try {
|
||||||
await dnsPromise.resolve(name);
|
await dnsPromise.resolve(name);
|
||||||
@@ -768,7 +767,7 @@ const preSetupTasks = async function () {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the hostname to use for autorun in the browser.
|
* Gets the hostname to use for autorun in the browser.
|
||||||
* @returns promise({string} The hostname to use for autorun
|
* @returns Promise<string> The hostname to use for autorun
|
||||||
*/
|
*/
|
||||||
async function getAutorunHostname(useIPv6, useIPv4) {
|
async function getAutorunHostname(useIPv6, useIPv4) {
|
||||||
if (autorunHostname === 'auto') {
|
if (autorunHostname === 'auto') {
|
||||||
|
Reference in New Issue
Block a user