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. // tries (and fails) to serialize static fields.
$drivers = [ $drivers = [
PonyfmDriver::class, PonyfmDriver::class,
NativeDriver::class //NativeDriver::class
]; ];
foreach ($drivers as $driver) { foreach ($drivers as $driver) {

View file

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

View file

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