From a6acf28d67be272f4a5d106256747a2d207d2cf5 Mon Sep 17 00:00:00 2001 From: Andrew Polk Date: Thu, 4 Apr 2024 10:16:15 -0700 Subject: [PATCH] Fix links (BL-13229) --- package.json | 2 +- src/preload.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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); } },