From e4cbec4bd5934a87ea5c46c0ecfc60adfcfe3427 Mon Sep 17 00:00:00 2001 From: N-Pex Date: Thu, 15 Apr 2021 17:34:25 +0200 Subject: [PATCH] Add empty order.txt file with comment to stickers folder Mainly so that the folder will be in git. --- src/assets/stickers/order.txt | 1 + src/plugins/stickers.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 src/assets/stickers/order.txt diff --git a/src/assets/stickers/order.txt b/src/assets/stickers/order.txt new file mode 100644 index 0000000..be72aee --- /dev/null +++ b/src/assets/stickers/order.txt @@ -0,0 +1 @@ +# List your sticker pack names here, one per line diff --git a/src/plugins/stickers.js b/src/plugins/stickers.js index 0ae5085..5f3a8ea 100644 --- a/src/plugins/stickers.js +++ b/src/plugins/stickers.js @@ -7,7 +7,7 @@ try { const packInfo = stickerPackInfo.split("\n"); for (let i = 0; i < packInfo.length; i++) { const pack = packInfo[i]; - if (pack && pack.length > 0) { + if (pack && pack.length > 0 && !pack.startsWith('#')) { stickerPacks[pack] = []; stickerPacks.ordering.push(pack); }