mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-24 22:18:00 +01:00
Disabling notifications until they're stable on Chrome
This commit is contained in:
parent
64a44fff4f
commit
336e04a0c1
3 changed files with 4 additions and 4 deletions
|
@ -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) {
|
||||
|
|
|
@ -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()
|
||||
]
|
||||
|
|
|
@ -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+
|
||||
|
|
Loading…
Reference in a new issue