Skip to content

Commit a4cace9

Browse files
committed
Fix bug with show emoji name
1 parent 8be116c commit a4cace9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

features/show-emoji-names/script.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@ export default async function ({ feature, console }) {
66
});
77

88
ScratchTools.waitForElements("span.emoji-text img.emoji", function (img) {
9-
console.log(img);
109
img.title = capitalize(
1110
img.src.split("/")[5].split(".")[0].replaceAll("-", " ")
1211
);
1312
});
1413

1514
function capitalize(string) {
16-
string
15+
return string
1716
.split(" ")
1817
.map((word) => {
1918
return word[0].toUpperCase() + word.substring(1);

0 commit comments

Comments
 (0)