Skip to content

Commit

Permalink
fix: Fix windowsNlinux version, remove no longer necessary emojis.js …
Browse files Browse the repository at this point in the history
…import in html page
  • Loading branch information
tomershvueli committed Jul 20, 2021
1 parent c76df72 commit ddf309c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion app/macos/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
</form>
</div>

<script src="../src/emojis.js"></script>
<script src="../src/index.js"></script>
</body>

Expand Down
3 changes: 2 additions & 1 deletion app/windowsNlinux/main.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -51,6 +51,7 @@ const createWindow = () => {
webPreferences: {
backgroundThrottling: false,
nodeIntegration: true,
contextIsolation: false,
},
});

Expand Down
1 change: 0 additions & 1 deletion app/windowsNlinux/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
</form>
</div>

<script src="../src/emojis.js"></script>
<script src="../src/index.js"></script>
</body>

Expand Down
2 changes: 2 additions & 0 deletions app/windowsNlinux/src/index.js
Original file line number Diff line number Diff line change
@@ -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);

Expand Down

0 comments on commit ddf309c

Please sign in to comment.