Skip to content

Commit 44750f1

Browse files
committed
Updates URLs in config and presets to new domain
Replaces occurrences of the old domain with the new domain in configuration and presets file handling to ensure compatibility with updated service endpoints.
1 parent 117e57a commit 44750f1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ ipcMain.on("background-stop", function (event) {
346346
const configPath = path.resolve(app.getPath("userData"), "settings.json");
347347
ipcMain.handle("read-config", () => {
348348
return fs.existsSync(configPath)
349-
? JSON.parse(fs.readFileSync(configPath).toString())
349+
? JSON.parse(fs.readFileSync(configPath).toString().replaceAll("http://convert.deepnest.io", "https://converter.deepnest.app/convert").replaceAll("https://convert.deepnest.io", "https://converter.deepnest.app/convert"))
350350
: {};
351351
});
352352
ipcMain.handle("write-config", (event, stringifiedConfig) => {

presets.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const presetsPath = path.resolve(app.getPath("userData"), "presets.json");
66

77
function loadPresets() {
88
if (fs.existsSync(presetsPath)) {
9-
return JSON.parse(fs.readFileSync(presetsPath).toString());
9+
return JSON.parse(fs.readFileSync(presetsPath).toString().replaceAll("http://convert.deepnest.io", "https://converter.deepnest.app/convert").replaceAll("https://convert.deepnest.io", "https://converter.deepnest.app/convert"));
1010
}
1111
return {};
1212
}

0 commit comments

Comments
 (0)