xmpp.chapril.org-conversejs/src
JC Brand c3933426b9 Refactor checkFileTypes
- Don't check the protocol in `checkFileTypes`, it should be doing one
    thing only, and that is check whether the URL ends with a particular
    file extension.
- Raise an error when a URI object can't be created from the passed in URL

Adds new function `isAllowedProtocolForMedia` which checks whether the
URL points to a file on the file system (`file:`), is in a Chrome
extension or uses HTTPs.

Use that in `shouldRenderMediaFromURL` to filter out URLs that shouldn't
be rendered.

Re-add utility methods to the `u` object so that 3rd party plugins can
use them.
2022-03-29 19:41:16 +02:00
..
headless Refactor checkFileTypes 2022-03-29 19:41:16 +02:00
i18n Translated using Weblate (Spanish) 2022-02-10 14:24:06 +01:00
modals Use SVG icons for refresh button and toggle switch 2022-02-15 11:17:41 +01:00
plugins Don't make the connection URL input required 2022-03-25 08:54:38 +01:00
shared CSS: various color fixes between light/dark themes 2022-03-29 10:35:25 +02:00
templates Normalize URL path 2022-02-15 14:38:40 +01:00
utils Use SVG icons and tweak message padding 2022-01-31 23:00:26 +01:00
converse.js Move webpack files into dir 2022-01-27 13:08:40 +01:00
entry.js Make sure converse.initialize still returns a Promise 2021-11-30 16:11:52 +01:00
website.js Fix linting errors (no-unused-vars) 2019-10-09 16:27:58 +02:00