cdn.by.wonderpush.com Open in urlscan Pro
2606:4700::6812:12b7  Public Scan

URL: https://cdn.by.wonderpush.com/sdk/1.1/wonderpush-loader.min.js
Submission: On September 17 via api from IT — Scanned from IT

Form analysis 0 forms found in the DOM

Text Content

!function(){"use strict";var e="__wpfvdk",t=function(){return!!self.Proxy};if("undefined"!=typeof localStorage&&"undefined"!=typeof PushManager&&"undefined"!=typeof Notification&&!localStorage.getItem("_wpinitialpermissionstate")){var r=Notification.permission;"default"===r&&(r="prompt"),localStorage.setItem("_wpinitialpermissionstate",r)}var o=function(){var t="wonderpush-jssdk",r=new URL("https://cdn.by.wonderpush.com/sdk/1.1.34.0/wonderpush.min.js");if(self.document){if(!document.getElementById(t)){var o=document.currentScript||document.getElementById("wonderpush-jssdk-loader")||document.querySelector('script[src$="wonderpush-loader.min.js"]')||document.querySelector('script[src$="wonderpush-loader.js"]')||{};self._wp_loaderScriptUrl=o.src;var n=document.getElementsByTagName("script")[0];try{o.src&&(r.search=new URL(o.src).search)}catch(e){}var a=function(){var o=document.createElement("script");o.id=t,o.async=!0,o.src=r.href,n&&n.parentNode?n.parentNode.insertBefore(o,n):(document.head||document.body).prepend(o);try{window.localStorage&&window.localStorage.setItem(e,""+ +new Date)}catch(e){}};if(!!document.querySelector('head>meta[name=wonderpush-integration][content="frame,popup"]')||!!document.querySelector('head>meta[name=brevo-integration][content="frame,popup"]'))a();else{var i=!1;try{i=!!window.localStorage&&window.localStorage.getItem(e)}catch(e){i=!0}var s=i?0:2750;if(o.dataset&&o.dataset.delay){var c=parseInt(o.dataset.delay);isNaN(c)||(s=c)}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",function(){setTimeout(a,s)}):setTimeout(a,s)}}}else if(self.ServiceWorkerGlobalScope&&self.importScripts){if("killBill"===new URL(self.location.href).searchParams.get("_wpKillPill"))return self.WonderPush=[],self.WonderPush.ready=function(){},void(self.WonderPush.init=function(){});importScripts(r.href)}};t()&&o()}();