Skip to content

Commit

Permalink
Fix links (BL-13229)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-polk committed Apr 4, 2024
1 parent 1f9deb0 commit a6acf28
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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.0.8",
"version": "1.0.9",
"author": "Bloom Devs",
"description": "Viewer for Bloom Digital books",
"license": "MIT",
Expand Down
6 changes: 3 additions & 3 deletions src/preload.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { contextBridge, ipcRenderer, shell } from "electron";
import { contextBridge, ipcRenderer } from "electron";
import * as remote from "@electron/remote";

// Expose protected methods that allow the renderer process to use
Expand Down Expand Up @@ -26,13 +26,13 @@ contextBridge.exposeInMainWorld("electronApi", {
}
},
openLibrary: () => {
shell.openExternal("https://bloomlibrary.org");
remote.shell.openExternal("https://bloomlibrary.org");
},
openDownloadPage: (downloadLink: string) => {
if (
downloadLink.startsWith("https://github.com/BloomBooks/bloompub-viewer")
) {
shell.openExternal(downloadLink);
remote.shell.openExternal(downloadLink);
}
},

Expand Down

0 comments on commit a6acf28

Please sign in to comment.