summaryrefslogtreecommitdiff
path: root/twitch.html
diff options
context:
space:
mode:
Diffstat (limited to 'twitch.html')
-rw-r--r--twitch.html12
1 files changed, 11 insertions, 1 deletions
diff --git a/twitch.html b/twitch.html
index ff77bca..9adc40c 100644
--- a/twitch.html
+++ b/twitch.html
@@ -15,7 +15,9 @@
<script src="/scripts/badges.js"></script>
<script>
let user = null;
- const params = {};
+ const params = {
+ "tinyemotesinstances": null
+ };
const badges = {};
const emotes = {};
@@ -49,6 +51,14 @@
() => get7TVChannelEmotes(user["id"], emotes),
() => get7TVGlobalEmotes(emotes),
];
+
+ if (params["tinyemotesinstances"] != null) {
+ for (const url of params["tinyemotesinstances"].split("\n")) {
+ emotePromises.push(() => getTinyemotesChannelEmotes(url, user["id"], emotes));
+ emotePromises.push(() => getTinyemotesGlobalEmotes(url, emotes));
+ }
+ }
+
emotePromises
.reduce((p, fn) => p.then(fn), Promise.resolve())
.then(() => addSystemMessage("All emotes loaded"));