Merge pull request #2827 from nextcloud/backport/2822/stable1.3

[stable1.3] Also include /apps/spreed urls in the listener for loading the talk integration
This commit is contained in:
Julius Härtl
2021-02-25 15:12:44 +01:00
committed by GitHub

View File

@@ -49,11 +49,12 @@ class BeforeTemplateRenderedListener implements IEventListener {
} }
Util::addStyle('deck', 'deck'); Util::addStyle('deck', 'deck');
if (strpos($this->request->getPathInfo(), '/apps/calendar') === 0) { $pathInfo = $this->request->getPathInfo();
if (strpos($pathInfo, '/apps/calendar') === 0) {
Util::addScript('deck', 'calendar'); Util::addScript('deck', 'calendar');
} }
if (strpos($this->request->getPathInfo(), '/call/') === 0) { if (strpos($pathInfo, '/call/') === 0 || strpos($pathInfo, '/apps/spreed') === 0) {
Util::addScript('deck', 'talk'); Util::addScript('deck', 'talk');
} }
} }