Skip to content

Commit 4067338

Browse files
committed
Add Emoji version to version popup
1 parent 6f0db81 commit 4067338

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/index.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,8 @@ function toggleTagArray(tags: string[], tag: string): string[] {
232232

233233
async function main() {
234234
let data: EmojiData[] = [];
235+
let emojiVersion = 0.0;
236+
let emojiVersionStr = "";
235237

236238
var rawData:any;
237239
try {
@@ -262,6 +264,10 @@ async function main() {
262264
tags.push(tone.replaceAll(' ', '-').toLowerCase());
263265
}
264266
}
267+
if (parseFloat(row.version) > emojiVersion) {
268+
emojiVersion = parseFloat(row.version);
269+
emojiVersionStr = row.version;
270+
}
265271
data.push( {
266272
codepoints: row.codepoints,
267273
order: order++,
@@ -441,7 +447,7 @@ async function main() {
441447

442448
table.on("tableBuilt", function () {
443449
document.getElementById("favicon")!.onclick = () => {
444-
table.alert(`Last modified ${statusData.lastmod} (${statusData.commit})`);
450+
table.alert(`Emoji v${emojiVersionStr} (built on ${statusData.lastmod} - ${statusData.commit})`);
445451
setTimeout(() => table.clearAlert(), 2500);
446452
}
447453
});

0 commit comments

Comments
 (0)