Merge pull request #1140 from greggzigler/travis_karma

Add karma to travis
This commit is contained in:
Matias Alejo Garcia 2014-08-21 10:45:27 -04:00
commit 9bf7586de0
4 changed files with 20 additions and 6 deletions

View file

@ -200,8 +200,11 @@ factory('notification', ['$timeout',
}, settings[type].duration);
}
// Movile notification
window.navigator.vibrate([200,100,200]);
// Mobile notification
if (window && window.navigator && window.navigator.vibrate) {
window.navigator.vibrate([200,100,200]);
};
if (document.hidden && (type == 'info' || type == 'funds')) {
new window.Notification(title, {body: content, icon:'img/notification.png'});
}