diff --git a/package.json b/package.json index cb20418..ce15a32 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bloompub-viewer", - "version": "1.1.2", + "version": "1.1.3", "author": "Bloom Devs", "description": "Viewer for Bloom Digital books", "license": "MIT", diff --git a/src/preload.ts b/src/preload.ts index 7502d0b..9968beb 100644 --- a/src/preload.ts +++ b/src/preload.ts @@ -29,9 +29,7 @@ contextBridge.exposeInMainWorld("electronApi", { remote.shell.openExternal("https://bloomlibrary.org"); }, openDownloadPage: (downloadLink: string) => { - if ( - downloadLink.startsWith("https://github.com/BloomBooks/bloompub-viewer") - ) { + if (downloadLink.startsWith("https://bloomlibrary.org")) { remote.shell.openExternal(downloadLink); } }, diff --git a/src/renderer/App.tsx b/src/renderer/App.tsx index 446b84c..6db8450 100644 --- a/src/renderer/App.tsx +++ b/src/renderer/App.tsx @@ -62,7 +62,9 @@ function checkForNewVersion() { draggable: true, progress: undefined, onClick: () => { - window.electronApi.openDownloadPage(data.data.html_url); + window.electronApi.openDownloadPage( + "https://bloomlibrary.org/bloompub-viewer" + ); }, } );