diff --git a/src/electron/index.js b/src/electron/index.js
index a34a1ff..1ce9e42 100644
--- a/src/electron/index.js
+++ b/src/electron/index.js
@@ -8,6 +8,7 @@ const {
} = require("electron");
const path = require("path");
const fs = require("fs");
+const url = require("url");
const { initUserFilesDir } = require("./userFilesInit");
const settings = require("./settings");
const migrate = require("./migrations");
@@ -70,44 +71,113 @@ try {
);
}
-/**
- * Open browser windows on link-click, an event triggered by renderer process.
- * @param {String} link
- */
-ipcMain.on("link-click", (_, link) => {
- // This presents a security challenge: see https://github.com/cloverich/chronicles/issues/51
- // https://www.electronjs.org/docs/latest/tutorial/security#15-do-not-use-openexternal-with-untrusted-content
- shell.openExternal(link);
-});
-
-// Allow files to load if using the "chronicles" protocol
+// Allow files in and