News

Najnowsze informacje

window.OneSignal = window.OneSignal || []; OneSignal.push( function() { OneSignal.SERVICE_WORKER_UPDATER_PATH = "OneSignalSDKUpdaterWorker.js.php"; OneSignal.SERVICE_WORKER_PATH = "OneSignalSDKWorker.js.php"; OneSignal.SERVICE_WORKER_PARAM = { scope: "/" }; OneSignal.setDefaultNotificationUrl("https://wlocie.pl"); var oneSignal_options = {}; window._oneSignalInitOptions = oneSignal_options; oneSignal_options['wordpress'] = true; oneSignal_options['appId'] = '63eb2830-2e0e-4cac-9775-60cf70953d25'; oneSignal_options['allowLocalhostAsSecureOrigin'] = true; oneSignal_options['welcomeNotification'] = { }; oneSignal_options['welcomeNotification']['disable'] = true; oneSignal_options['path'] = "https://wlocie.pl/wp-content/plugins/onesignal-free-web-push-notifications/sdk_files/"; oneSignal_options['safari_web_id'] = "web.onesignal.auto.639a6cf4-24b5-4e34-8f2b-dfd5fe45e04f"; oneSignal_options['promptOptions'] = { }; oneSignal_options['promptOptions']['actionMessage'] = "Chcemy wyświetlać Ci powiadomienia:"; oneSignal_options['promptOptions']['exampleNotificationTitleDesktop'] = "Przykładowe powiadomienie"; oneSignal_options['promptOptions']['exampleNotificationMessageDesktop'] = "Tak będzie wyświetlać się powiadomienie"; oneSignal_options['promptOptions']['exampleNotificationTitleMobile'] = "Przykładowe powiadomienie"; oneSignal_options['promptOptions']['exampleNotificationMessageMobile'] = "Tak będzie wyświetlać się powiadomienie"; oneSignal_options['promptOptions']['exampleNotificationCaption'] = "Możesz w każdej chwili wyłączyć subskrybcję"; oneSignal_options['promptOptions']['acceptButtonText'] = "KONTUNUUJ"; oneSignal_options['promptOptions']['cancelButtonText'] = "Nie, dziękuję"; oneSignal_options['promptOptions']['siteName'] = "wLocie.pl"; oneSignal_options['promptOptions']['autoAcceptTitle'] = "Pozwól"; OneSignal.init(window._oneSignalInitOptions); OneSignal.showSlidedownPrompt(); }); function documentInitOneSignal() { var oneSignal_elements = document.getElementsByClassName("OneSignal-prompt"); var oneSignalLinkClickHandler = function(event) { OneSignal.push(['registerForPushNotifications']); event.preventDefault(); }; for(var i = 0; i < oneSignal_elements.length; i++) oneSignal_elements[i].addEventListener('click', oneSignalLinkClickHandler, false); } if (document.readyState === 'complete') { documentInitOneSignal(); } else { window.addEventListener("load", function(event){ documentInitOneSignal(); }); }