Skip to content

Commit

Permalink
fix: Change download link to bloomlibrary.org/bloompub-viewer (BL-13513)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-polk committed Jul 9, 2024
1 parent 5999243 commit 8f3f24e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 1 addition & 3 deletions src/preload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
},
Expand Down
4 changes: 3 additions & 1 deletion src/renderer/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
);
},
}
);
Expand Down

0 comments on commit 8f3f24e

Please sign in to comment.