Disabling notifications until they're stable on Chrome

This commit is contained in:
Josef Citrine 2016-06-20 01:38:07 +01:00
parent 64a44fff4f
commit 336e04a0c1
3 changed files with 4 additions and 4 deletions

View file

@ -62,7 +62,7 @@ class SendNotifications extends Job implements SelfHandling, ShouldQueue
// tries (and fails) to serialize static fields.
$drivers = [
PonyfmDriver::class,
NativeDriver::class
//NativeDriver::class
];
foreach ($drivers as $driver) {

View file

@ -26,7 +26,7 @@ module.exports = angular.module('ponyfm').directive 'pfmNotificationList', () ->
$scope.notifications = []
$scope.subscribed = false
$scope.switchDisabled = true
$scope.switchHidden = false
$scope.switchHidden = true
isTimeoutScheduled = false
# TODO: ADD REFRESH BUTTON
@ -85,6 +85,6 @@ module.exports = angular.module('ponyfm').directive 'pfmNotificationList', () ->
isTimeoutScheduled = false
, 60000)
checkSubscription()
#checkSubscription()
refreshNotifications()
]

View file

@ -142,7 +142,7 @@ module.exports = angular.module('ponyfm').factory('notifications', [
return false
# If Chrome 50+
if !!window.chrome && !!window.chrome.webstore
if !!window.chrome
if parseInt(navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./)[2]) >= 50
return true
# If Firefox 46+