diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2018-11-27 13:40:12 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2018-11-28 14:48:51 +0300 |
commit | 252c53e780a3557f073981cea78c8982f39745e5 (patch) | |
tree | 5c8910b73c6b9318bac7e99a06c7f5690ada3e08 /lib/PublicShareAuth | |
parent | da13fd1d8f493e231aa348d60124bb22baf69a3d (diff) |
Move ChatView to precompiled Handlebars templates
In Nextcloud 15 the default Content Security Policy disallows unsafe
eval expressions, so Handlebars templates can no longer be compiled at
runtime.
For the time being that default Content Security Policy was lifted for
Talk so "Handlebars.compile" could still be used. However, this only
applies to Talk itself; when using Talk components in other apps they
must abide to the Content Security Policy of those apps. As ChatView is
going to be used in the Files app it has been moved to precompiled
Handlebars templates (which are still compatible with the regular Talk
UI).
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'lib/PublicShareAuth')
-rw-r--r-- | lib/PublicShareAuth/TemplateLoader.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicShareAuth/TemplateLoader.php b/lib/PublicShareAuth/TemplateLoader.php index 52f4d0ddd..2052f3195 100644 --- a/lib/PublicShareAuth/TemplateLoader.php +++ b/lib/PublicShareAuth/TemplateLoader.php @@ -97,6 +97,7 @@ class TemplateLoader { Util::addScript('spreed', 'views/roomlistview'); Util::addScript('spreed', 'views/sidebarview'); Util::addScript('spreed', 'views/tabview'); + Util::addScript('spreed', 'views/templates'); Util::addScript('spreed', 'views/virtuallist'); Util::addScript('spreed', 'richobjectstringparser'); Util::addScript('spreed', 'simplewebrtc'); |