backgrounds.js: update for new poup

This commit is contained in:
Cohee
2025-06-02 23:44:59 +03:00
parent 55b3016985
commit 52e7df970f

View File

@@ -245,7 +245,7 @@ async function getNewBackgroundName(referenceElement) {
const fileExtension = oldBg.split('.').pop();
const fileNameBase = isCustom ? oldBg.split('/').pop() : oldBg;
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) {
console.debug('no new_bg_extensionless');