Commit 4ab1da38 authored by Jeffrey Morgan's avatar Jeffrey Morgan
Browse files

guard around `id()`

parent be989d89
...@@ -236,7 +236,11 @@ app.on('window-all-closed', () => { ...@@ -236,7 +236,11 @@ app.on('window-all-closed', () => {
// In this file you can include the rest of your app's specific main process // In this file you can include the rest of your app's specific main process
// code. You can also put them in separate files and import them here. // code. You can also put them in separate files and import them here.
const aid = id() let aid = ''
try {
aid = id()
} catch (e) {}
autoUpdater.setFeedURL({ autoUpdater.setFeedURL({
url: `https://ollama.ai/api/update?os=${process.platform}&arch=${process.arch}&version=${app.getVersion()}&id=${aid}`, url: `https://ollama.ai/api/update?os=${process.platform}&arch=${process.arch}&version=${app.getVersion()}&id=${aid}`,
}) })
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment