mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Use alternate method of determining URLs, consolidate logs format
This commit is contained in:
@ -148,6 +148,7 @@ import {
|
||||
getBase64Async,
|
||||
humanFileSize,
|
||||
Stopwatch,
|
||||
isValidUrl,
|
||||
} from './scripts/utils.js';
|
||||
|
||||
import { ModuleWorkerWrapper, doDailyExtensionUpdatesCheck, extension_settings, getContext, loadExtensionSettings, renderExtensionTemplate, runGenerationInterceptors, saveMetadataDebounced } from './scripts/extensions.js';
|
||||
@ -9988,7 +9989,7 @@ jQuery(async function () {
|
||||
const url = input.trim();
|
||||
var request;
|
||||
|
||||
if (url.includes("https")) {
|
||||
if (isValidUrl(url)) {
|
||||
console.debug('Custom content import started for URL: ', url);
|
||||
request = await fetch('/api/content/importURL', {
|
||||
method: 'POST',
|
||||
|
Reference in New Issue
Block a user