vendor/assets/javascripts/devise-onesignal.js.erb in devise-onesignal-1.1.1 vs vendor/assets/javascripts/devise-onesignal.js.erb in devise-onesignal-1.2.1

- old
+ new

@@ -16,11 +16,11 @@ message: '' }, notifyButton: { enable: false }, - persistNotification: false // Automatically dismiss the notification after ~20 seconds in Chrome Deskop v47+ + persistNotification: <%= DeviseOneSignal::Configuration.persist_notification ? 'true' : 'false' %> // Automatically dismiss the notification after ~20 seconds in Chrome Desktop v47+ }]); // Firstly this will check user id OneSignal.push(function() { OneSignal.getUserId().then(function(userId) { @@ -41,10 +41,10 @@ function OneSignalSubscribe() { if ( useragentid != null ) { OneSignal.setSubscription(true); } else { OneSignal.registerForPushNotifications({ - modalPrompt: true + modalPrompt: <%= DeviseOneSignal::Configuration.subscribe_with_modal ? 'true' : 'false' %> }); }; } function OneSignalUnsubscribe() {