Skip to content

Commit

Permalink
3.9.1
Browse files Browse the repository at this point in the history
- Fixed a bug in 3.9
  • Loading branch information
Sav22999 committed Jan 18, 2021
1 parent 02e7231 commit 4045f94
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
1 change: 1 addition & 0 deletions js/release_notes.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ function releaseNotes(release) {
release_notes_text = "";
switch (release) {
case "3.9":
case "3.9.1":
release_notes_text = "<ul>";
release_notes_text += "<li>You can support this project buying a coffee to the developer on PayPal or Ko-fi (see the Settings bottom) {{emoji}}☕{{/emoji}}</li>";
release_notes_text += "<li>Added the shortcut to open this add-on: Ctrl/Command+Alt+A (only in Firefox!)</li>";
Expand Down
16 changes: 10 additions & 6 deletions js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,14 @@ generateTitles();

function loaded() {
document.getElementById("search-bar-input").onkeyup = function (e) {
searchEmoji(document.getElementById("search-bar-input").value, false);
searchEmoji(document.getElementById("search-bar-input").value);
number_of_emojis_generations = 0;

}
document.getElementById("search-bar-input").onkeydown = function (e) {
if (e.key == "Enter") {
searchEmoji(document.getElementById("search-bar-input").value, true);
number_of_emojis_generations = 5;
}
number_of_emojis_generations = 4;
}
document.getElementById("search-bar-input").onblur = function () {
number_of_emojis_generations = 5;
Expand Down Expand Up @@ -504,6 +507,8 @@ function showMessageTop(text) {
let button_hide_element = document.createElement("button");
button_hide_element.onclick = function () {
hideReleaseNotesMessage();
let this_release = browserAgentSettings.runtime.getManifest().version;
updateLastRelease(this_release);
};
button_hide_element.className = "message-button";
button_hide_element.id = "close-release-button";
Expand Down Expand Up @@ -568,7 +573,7 @@ function hideReviewMessage() {
hideElement("background-opacity-review");
}

function searchEmoji(value, get_focus = false) {
function searchEmoji(value) {
emojis[0] = {};
let n_results = 0;
let max_results = (max_rows * max_columns) * 3;
Expand Down Expand Up @@ -936,7 +941,7 @@ function selectYesNoButton(class_name, index) {
}

function showNewsInRelease() {
let last_release_saved = 0;
let last_release_saved = "";
let nameOfSetting = "release_notes";
browserAgentSettings.storage.sync.get(nameOfSetting, function (value) {
if (value[nameOfSetting] != undefined) {
Expand All @@ -947,7 +952,6 @@ function showNewsInRelease() {
if (releaseNotes(this_release) != "") {
showMessageTop(releaseNotes(this_release));
}
updateLastRelease(this_release);
}
})
}
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "Emoji",
"version": "3.9",
"version": "3.9.1",
"description": "It permits just with a single click to copy an emoji.",
"icons": {
"16": "./img/icon-dark-16.png",
Expand Down

0 comments on commit 4045f94

Please sign in to comment.