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 /templates | |
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 'templates')
-rw-r--r-- | templates/index-public.php | 1 | ||||
-rw-r--r-- | templates/index.php | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/templates/index-public.php b/templates/index-public.php index f85a7326f..799b54bd8 100644 --- a/templates/index-public.php +++ b/templates/index-public.php @@ -32,6 +32,7 @@ script( 'views/roomlistview', 'views/sidebarview', 'views/tabview', + 'views/templates', 'views/virtuallist', 'richobjectstringparser', 'simplewebrtc', diff --git a/templates/index.php b/templates/index.php index 0263073cd..a3dbb5290 100644 --- a/templates/index.php +++ b/templates/index.php @@ -31,6 +31,7 @@ script( 'views/roomlistview', 'views/sidebarview', 'views/tabview', + 'views/templates', 'views/virtuallist', 'richobjectstringparser', 'simplewebrtc', |