Browse Source

👽 Update emoji colors fetching as per carloscuesta/gitmoji@9787678

master
KaKi87 1 month ago
parent
commit
0b41cd58c3
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      index.html

+ 2
- 2
index.html View File

@ -201,8 +201,8 @@
document.querySelector('.app__scrollTop').onclick = () => window.scrollTo({ top: 0, behavior: 'smooth' });
const
colors = (await (await fetch('https://raw.githubusercontent.com/carloscuesta/gitmoji/master/src/styles/_includes/_vars.scss')).text())
.split('\n').filter(line => line.includes(':')).map(item => item.replace(/[\s$,;]/g, '').split(':')),
colors = (await (await fetch('https://raw.githubusercontent.com/carloscuesta/gitmoji/master/src/components/GitmojiList/emojiColorsMap.js')).text())
.split('\n').filter(line => line.includes(':')).map(item => item.replace(/[\s',;]/g, '').split(':')),
{ gitmojis } = await (await fetch('https://raw.githubusercontent.com/carloscuesta/gitmoji/master/src/data/gitmojis.json')).json();
gitmojis.forEach(({ emoji, code, description, name }) => {
const

Loading…
Cancel
Save