Changes for page Material Collection

Last modified by Judith Steinfeld on 2025/06/03 11:13

From version 55.23
edited by Benjamin Fischer
on 2024/10/28 13:49
Change comment: There is no comment for this version
To version 55.24
edited by Benjamin Fischer
on 2024/10/28 13:51
Change comment: There is no comment for this version

Summary

Details

XWiki.JavaScriptExtension[0]
Code
... ... @@ -67,6 +67,7 @@
67 67   if (u.hostname.includes("colab")) icon = "code";
68 68   if (u.hostname.includes("youtube")) icon = "youtube-play";
69 69   if (u.pathname.endsWith(".pdf")) icon = "file-pdf-o";
70 + if (u.pathname.endsWith(".pptx")) icon = "file-powerpoint-o";
70 70   if (icon) {
71 71   const s = a.ownerDocument.createElement("span");
72 72   s.appendChild(a.ownerDocument.createElement("wbr"));