1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-11-12 01:40:53 +01:00

Removed localStorage reader

This commit is contained in:
Nayam Amarshe 2023-04-28 18:22:24 +05:30
parent ee526ed8dd
commit c1878ba42d

View File

@ -327,21 +327,6 @@ ipcMain.on(commands.DOUBLE_UPSCAYL, async (event, payload) => {
const saveImageAs = payload.saveImageAs as string;
const scale = payload.scale as string;
// SAVE OUTPUT FOLDER TO LOCAL STORAGE
mainWindow.webContents
.executeJavaScript('localStorage.getItem("rememberOutputFolder");', true)
.then((result) => {
if (result === "false") return;
mainWindow.webContents
.executeJavaScript(
`localStorage.setItem("lastFolderPath", "${folderPath}");`,
true
)
.then(() => {
logit(`Saved Last Folder Path (${folderPath}) to Local Storage`);
});
});
const isDefaultModel = defaultModels.includes(model);
// COPY IMAGE TO TMP FOLDER