mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
backgrounds.js: update for new poup
This commit is contained in:
@@ -245,7 +245,7 @@ async function getNewBackgroundName(referenceElement) {
|
|||||||
const fileExtension = oldBg.split('.').pop();
|
const fileExtension = oldBg.split('.').pop();
|
||||||
const fileNameBase = isCustom ? oldBg.split('/').pop() : oldBg;
|
const fileNameBase = isCustom ? oldBg.split('/').pop() : oldBg;
|
||||||
const oldBgExtensionless = fileNameBase.replace(`.${fileExtension}`, '');
|
const oldBgExtensionless = fileNameBase.replace(`.${fileExtension}`, '');
|
||||||
const newBgExtensionless = await callPopup('<h3>' + t`Enter new background name:` + '</h3>', 'input', oldBgExtensionless);
|
const newBgExtensionless = await Popup.show.input(t`Enter new background name:`, null, oldBgExtensionless);
|
||||||
|
|
||||||
if (!newBgExtensionless) {
|
if (!newBgExtensionless) {
|
||||||
console.debug('no new_bg_extensionless');
|
console.debug('no new_bg_extensionless');
|
||||||
|
Reference in New Issue
Block a user