Skip to content

Commit

Permalink
hotfix v.2.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Kunniii committed May 18, 2023
1 parent 560ec51 commit bf1be43
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 20 deletions.
6 changes: 6 additions & 0 deletions PRE-RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# New release 🎉 🎉

Hotfix for V2.2.3

I did not test the version before release.... fuk, now the chrome extension store will have to wait twice as long.

---

New update aims to ACTUALLY fix error when executing `atob()`.

New function to vote comments.
Expand Down
6 changes: 6 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# New release 🎉 🎉

Hotfix for V2.2.3

I did not test the version before release.... fuk, now the chrome extension store will have to wait twice as long.

---

New update aims to ACTUALLY fix error when executing `atob()`.

New function to vote comments.
Expand Down
6 changes: 3 additions & 3 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<h1 class="font-bold text-lg text-white">Teammates</h1>
<button
id="indie-button"
class="bg-yellow-500 hover:scale-110 duration-100 font-bold text-white text-lg w-fit rounded-lg px-10"
class="bg-yellow-500 hover:scale-110 duration-100 font-bold text-white text-lg w-40 rounded-lg px-10"
>
GRADE
</button>
Expand All @@ -57,7 +57,7 @@ <h1 class="font-bold text-lg text-white">Teammates</h1>
<h1 class="font-bold text-lg text-white">Groups</h1>
<button
id="group-button"
class="bg-blue-600 hover:scale-110 duration-100 font-bold text-white text-lg w-fit rounded-lg px-10"
class="bg-blue-600 hover:scale-110 duration-100 font-bold text-white text-lg w-40 rounded-lg px-10"
>
GRADE
</button>
Expand All @@ -68,7 +68,7 @@ <h1 class="font-bold text-lg text-white">Groups</h1>
<h1 class="font-bold text-lg text-white">Comments</h1>
<button
id="comments-button"
class="bg-emerald-500 hover:scale-110 duration-100 font-bold text-white text-lg w-fit rounded-lg px-10"
class="bg-emerald-500 hover:scale-110 duration-100 font-bold text-white text-lg w-40 rounded-lg px-10"
>
VOTE
</button>
Expand Down
18 changes: 1 addition & 17 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,4 @@ comments_button.addEventListener("click", () =>
chrome.runtime.sendMessage({ command: "grade_comments" })
);

const thereIsNewVersion = async () => {
let raw_data = await fetch("https://api.github.com/repos/Kunniii/edn_auto_ext/releases/latest");
let github_data = await raw_data.json();
let git_version = github_data.tag_name;
return [git_version != local_version, git_version];
};

(async () => {
document.getElementById("version").innerText = local_version;
let [yes, git_version] = await thereIsNewVersion();
if (yes) {
document.getElementById("new-version").prepend(`New version found: ${git_version}`);
document.getElementById("new-version").classList.remove("hidden");
} else {
document.getElementById("latest-version").innerHTML = "Latest version!";
}
})();
document.getElementById("version").innerText = local_version;

0 comments on commit bf1be43

Please sign in to comment.