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

Unverified Commit 2a7e7bbc authored by Akhil's avatar Akhil 🙂
Browse files

Remove replaceNotificationIcon

parent 3a2bbae4
Loading
Loading
Loading
Loading
Loading
+0 −23
Original line number Diff line number Diff line
@@ -78,22 +78,6 @@ function replaceNavbarIcon(appId, currentLi, selector) {
	}
}

/**
 *
 * @param imgSelector
 */
function replaceNotificationIcon(imgSelector) {
	$(imgSelector).hide()
	const src = $(imgSelector).attr('src') || ''
	const notifButtonSelector = '#header .notifications .notifications-button'
	if (src.includes('notifications-new.svg')) {
		$(notifButtonSelector).removeClass('icon-notifications')
		$(notifButtonSelector).addClass('icon-notifications-new')
	} else if (src.includes('notifications.svg')) {
		$(notifButtonSelector).removeClass('icon-notifications-new')
		$(notifButtonSelector).addClass('icon-notifications')
	}
}

/**
 *
@@ -118,13 +102,6 @@ function replaceNavbarIcons() {
	/* Empty Search icon(Set through CSS) */
	$('#header .header-right .magnify-icon').empty()

	/* Notifications icon(Replace src on load) */

	const notifImgSelector = '#header .notifications .notifications-button img'
	replaceNotificationIcon(notifImgSelector)
	$(notifImgSelector).on('load', function() {
		replaceNotificationIcon(notifImgSelector)
	})
}

/**