Changes for page Helpers

Last modified by Benjamin Fischer on 2025/06/17 11:57

From version 1.17
edited by Benjamin Fischer
on 2025/05/15 16:57
Change comment: There is no comment for this version
To version 1.18
edited by Benjamin Fischer
on 2025/05/15 17:00
Change comment: There is no comment for this version

Summary

Details

XWiki.JavaScriptExtension[0]
Code
... ... @@ -121,6 +121,7 @@
121 121   if (u.hostname.includes("youtube")) icon = "youtube-play";
122 122   if (u.pathname.endsWith(".pdf")) icon = "file-pdf-o";
123 123   if (u.pathname.endsWith(".pptx")) icon = "file-powerpoint-o";
124 + if (u.pathname.endsWith(".ipynb")) icon = "file-text-o";
124 124   if (icon) {
125 125   const s = a.ownerDocument.createElement("span");
126 126   s.appendChild(a.ownerDocument.createElement("wbr"));