diff --git a/package.json b/package.json index 6a3468b..9d79c72 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/preload.ts b/src/preload.ts index eef2ab8..7502d0b 100644 --- a/src/preload.ts +++ b/src/preload.ts @@ -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 @@ -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); } },