Remove notification parameters from query string after triggering notification

This commit is contained in:
Shaunak Kashyap 2016-07-06 03:38:39 -07:00
parent fe1732ca0a
commit e5c5a3be15
No known key found for this signature in database
GPG key ID: 0512E188DDE4FF2A

View file

@ -53,6 +53,10 @@ function showNotifier($location) {
const config = queryString.notif_loc ? { location: queryString.notif_loc } : {};
const level = queryString.notif_lvl || 'info';
$location.search('notif_msg', null);
$location.search('notif_loc', null);
$location.search('notif_lvl', null);
const notifier = new Notifier(config);
notifier[level](message);
}