Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit a0282940 authored by Akhil's avatar Akhil
Browse files

Add style via listener

parent 61528591
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -67,6 +67,10 @@ class BeforeTemplateRenderedListener implements IEventListener {
		if (strpos($pathInfo, '/apps/photos/') !== false) {
			$this->util->addStyle($this->appName, 'photos');
		}
		if ($pathInfo === '/settings/user/theming') {
			$this->util->addStyle($this->appName, 'settings-theming');
		}

		$response = $event->getResponse();
		if ($pathInfo === '/settings/user' && $response->getTemplateName() === 'settings/frame') {
			$this->util->addScript($this->appName, $this->appName . '-personal-info-settings');