Merge pull request #2822 from nextcloud/bugfix/noid/talk-include-spreed

Also include /apps/spreed urls in the listener for loading the talk integration
This commit is contained in:
Julius Härtl
2021-02-24 19:14:02 +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');
} }
} }