added the fourtf cdn

This commit is contained in:
fourtf 2018-06-20 19:10:54 +02:00
parent 107dc398a8
commit 66c4b4f82b

View file

@ -4,6 +4,8 @@
#include "debug/log.hpp"
#include "singletons/settingsmanager.hpp"
#include <QFile>
namespace chatterino {
namespace providers {
namespace emoji {
@ -157,8 +159,6 @@ void Emojis::loadEmojiOne2Capabilities()
file.open(QFile::ReadOnly);
QTextStream in(&file);
uint unicodeBytes[4];
while (!in.atEnd()) {
// Line example: sunglasses 1f60e
QString line = in.readLine();
@ -208,12 +208,18 @@ void Emojis::loadEmojiSet()
// clang-format off
static std::map<QString, QString> emojiSets = {
{"EmojiOne 2", "https://cdnjs.cloudflare.com/ajax/libs/emojione/2.2.6/assets/png/"},
{"EmojiOne 3", "https://cdn.jsdelivr.net/npm/emoji-datasource-emojione@4.0.4/img/emojione/64/"},
{"Twitter", "https://cdn.jsdelivr.net/npm/emoji-datasource-twitter@4.0.4/img/twitter/64/"},
{"Facebook", "https://cdn.jsdelivr.net/npm/emoji-datasource-facebook@4.0.4/img/facebook/64/"},
{"Apple", "https://cdn.jsdelivr.net/npm/emoji-datasource-apple@4.0.4/img/apple/64/"},
{"Google", "https://cdn.jsdelivr.net/npm/emoji-datasource-google@4.0.4/img/google/64/"},
{"Messenger", "https://cdn.jsdelivr.net/npm/emoji-datasource-messenger@4.0.4/img/messenger/64/"},
// {"EmojiOne 3", "https://cdn.jsdelivr.net/npm/emoji-datasource-emojione@4.0.4/img/emojione/64/"},
// {"Twitter", "https://cdn.jsdelivr.net/npm/emoji-datasource-twitter@4.0.4/img/twitter/64/"},
// {"Facebook", "https://cdn.jsdelivr.net/npm/emoji-datasource-facebook@4.0.4/img/facebook/64/"},
// {"Apple", "https://cdn.jsdelivr.net/npm/emoji-datasource-apple@4.0.4/img/apple/64/"},
// {"Google", "https://cdn.jsdelivr.net/npm/emoji-datasource-google@4.0.4/img/google/64/"},
// {"Messenger", "https://cdn.jsdelivr.net/npm/emoji-datasource-messenger@4.0.4/img/messenger/64/"},
{"EmojiOne 3", "https://cdn.fourtf.com/emoji/emojione/64/"},
{"Twitter", "https://cdn.fourtf.com/emoji/twitter/64/"},
{"Facebook", "https://cdn.fourtf.com/emoji/facebook/64/"},
{"Apple", "https://cdn.fourtf.com/emoji/apple/64/"},
{"Google", "https://cdn.fourtf.com/emoji/google/64/"},
{"Messenger", "https://cdn.fourtf.com/emoji/messenger/64/"},
};
// clang-format on