diff --git a/public/scripts/utils.js b/public/scripts/utils.js index 67203adc6..1e140a6ae 100644 --- a/public/scripts/utils.js +++ b/public/scripts/utils.js @@ -1,8 +1,9 @@ import { getContext } from './extensions.js'; -import { callPopup, getRequestHeaders } from '../script.js'; +import { getRequestHeaders } from '../script.js'; import { isMobile } from './RossAscends-mods.js'; import { collapseNewlines } from './power-user.js'; import { debounce_timeout } from './constants.js'; +import { Popup } from './popup.js'; /** * Pagination status string template. @@ -1821,7 +1822,7 @@ export async function checkOverwriteExistingData(type, existingNames, name, { in return true; } - const overwrite = interactive ? await callPopup(`
A ${type.toLowerCase()} with the same name already exists:
${existing}
A ${type.toLowerCase()} with the same name already exists:
${existing}