fix(Utils): moved emojilists.js instance inside Emoji singleton (#816)

Needed for: https://github.com/status-im/status-desktop/issues/6729
This commit is contained in:
Alexandra Betouni 2022-08-03 11:51:38 +03:00 committed by Michał Cieślak
parent ae75afb67a
commit 8210e06292
2 changed files with 1 additions and 2 deletions

View File

@ -19,7 +19,7 @@ QtObject {
"svg": "svg"
}
property string base: Qt.resolvedUrl("../../../assets/twemoji/")
property var emojiJSON: EmojiJSON
function parse(text, renderSize = size.small, renderFormat = format.svg) {
const renderSizes = renderSize.split("x");
if (!renderSize.includes("x") || renderSizes.length !== 2) {

View File

@ -1,5 +1,4 @@
module StatusQ.Core.Utils
EmojiJSON 1.0 emojiList.js
singleton Utils 0.1 Utils.qml
singleton Emoji 0.1 Emoji.qml