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

Verified Commit ff8d3b08 authored by Nivesh Krishna's avatar Nivesh Krishna
Browse files

short hand syntax

parent afca1f50
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -69,9 +69,9 @@ function replaceNavbarIcon(appId, currentLi, selector) {
	}
	// snappymail uses png file in icon
	if (fileName.includes('.svg') || appId === 'snappymail') {
		appId === 'snappymail'
			? fileName = 'app'
			: fileName = fileName.split('.svg')[0]
		fileName = appId === 'snappymail'
			? 'app'
			: fileName.split('.svg')[0]

		const color = $(currentLi).find('a.active').length
			? activeIconColorCode