From 6c44e85b820902a4d7bb640324d5ed927e414bcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Thu, 7 Jul 2022 20:29:11 +0200 Subject: Extend javascript formatters to also take VEvent. --- static/user/user-additions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'static/user') diff --git a/static/user/user-additions.js b/static/user/user-additions.js index c0579df5..5f5357eb 100644 --- a/static/user/user-additions.js +++ b/static/user/user-additions.js @@ -1,4 +1,4 @@ -window.formatters.set('description', (el, d) => { +window.formatters.set('description', (el, ev, d) => { if (/<\/?\w+( +\w+(=["']?\w+["']?)?)* *\/?>/.exec(d)) { /* Assume that the text is HTML if it contains something which looks like an HTML tag */ @@ -40,7 +40,7 @@ window.salar = new Promise((resolve, reject) => ) -window.formatters.set('location', async function(el, d) { +window.formatters.set('location', async function(el, _, d) { let rx = /Lokal: (.*)/ let m = rx.exec(d) if (! m) { -- cgit v1.2.3