Skip to content

Commit

Permalink
πŸ§žβ€β™‚οΈ This is v6.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Virej Dasani authored and Virej Dasani committed Jul 29, 2021
1 parent 588fcbc commit f97f0f3
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 48 deletions.
80 changes: 40 additions & 40 deletions app/windowsNlinux/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions app/windowsNlinux/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "geniemoji",
"version": "5.0.0",
"version": "6.0.0",
"description": "The Emoji Genie",
"main": "main.js",
"scripts": {
Expand Down Expand Up @@ -31,4 +31,4 @@
"lru_map": "^0.4.1",
"open": "^8.0.9"
}
}
}
15 changes: 9 additions & 6 deletions app/windowsNlinux/src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var appVersion = "5.0.0";
var appVersion = "6.0.0";

const electron = window.require("electron");

Expand Down Expand Up @@ -34,11 +34,14 @@ async function search() {

let answerEmojis;

const emojis = await electron.ipcRenderer.invoke("getEmojisForSearchString", searchCommand);
const emojis = await electron.ipcRenderer.invoke(
"getEmojisForSearchString",
searchCommand
);
emojis.forEach((item, i) => {
currentEmojiLength = i;
// All the matching emojis are appended into answerEmojis. the '.char' is from the emoji.js file
answerEmojis += `
currentEmojiLength = i;
// All the matching emojis are appended into answerEmojis. the '.char' is from the emoji.js file
answerEmojis += `
<button type="button" onclick="copy('${
item.char
}')" class="emojiButton" tabindex="${i + 2}">
Expand All @@ -47,7 +50,7 @@ async function search() {
</button>
</br>
`; // item.char is the emoji and item.name is the emoji name, both from the emojis.js file
});
});

// If there are no matching emojis, it returns undefined. To not display 'undefined', we do the following
if (typeof answerEmojis !== "string") {
Expand Down

0 comments on commit f97f0f3

Please sign in to comment.