aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js/features/tribute.ts
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/js/features/tribute.ts')
-rw-r--r--web_src/js/features/tribute.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/web_src/js/features/tribute.ts b/web_src/js/features/tribute.ts
index 44588c0064..fa65bcbb28 100644
--- a/web_src/js/features/tribute.ts
+++ b/web_src/js/features/tribute.ts
@@ -51,6 +51,7 @@ function makeCollections({mentions, emoji}) {
export async function attachTribute(element, {mentions, emoji}) {
const {default: Tribute} = await import(/* webpackChunkName: "tribute" */'tributejs');
const collections = makeCollections({mentions, emoji});
+ // @ts-expect-error TS2351: This expression is not constructable (strange, why)
const tribute = new Tribute({collection: collections, noMatchTemplate: ''});
tribute.attach(element);
return tribute;