From ddf309cf72789d05782e83ce942cb975a4d14c8c Mon Sep 17 00:00:00 2001 From: Tomer Date: Tue, 20 Jul 2021 08:48:02 -0400 Subject: [PATCH] fix: Fix windowsNlinux version, remove no longer necessary emojis.js import in html page --- app/macos/public/index.html | 1 - app/windowsNlinux/main.js | 3 ++- app/windowsNlinux/public/index.html | 1 - app/windowsNlinux/src/index.js | 2 ++ 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/macos/public/index.html b/app/macos/public/index.html index 2cdda39..def98c3 100644 --- a/app/macos/public/index.html +++ b/app/macos/public/index.html @@ -38,7 +38,6 @@ - diff --git a/app/windowsNlinux/main.js b/app/windowsNlinux/main.js index 57fd59b..2f11033 100644 --- a/app/windowsNlinux/main.js +++ b/app/windowsNlinux/main.js @@ -1,4 +1,4 @@ -const { app, BrowserWindow, Tray, globalShortcut, Menu } = require("electron"); +const { app, BrowserWindow, Tray, globalShortcut, Menu, ipcMain } = require("electron"); const { LRUMap } = require("lru_map"); // This is the npm package `open`, it is used here to open all links in an external browser @@ -51,6 +51,7 @@ const createWindow = () => { webPreferences: { backgroundThrottling: false, nodeIntegration: true, + contextIsolation: false, }, }); diff --git a/app/windowsNlinux/public/index.html b/app/windowsNlinux/public/index.html index 5c48408..4012854 100644 --- a/app/windowsNlinux/public/index.html +++ b/app/windowsNlinux/public/index.html @@ -37,7 +37,6 @@ - diff --git a/app/windowsNlinux/src/index.js b/app/windowsNlinux/src/index.js index d4863bc..fa75ca1 100644 --- a/app/windowsNlinux/src/index.js +++ b/app/windowsNlinux/src/index.js @@ -1,5 +1,7 @@ var appVersion = "5.0.0"; +const electron = window.require("electron"); + // Whenever a letter is entered into the commandInput field, the search() function is executed. With this, matching emojis are displayed as the user is typing document.getElementById("commandInput").addEventListener("keyup", search);