PageSourceSearch

https://www.onlymyhealth.com/js/worker.js?v=5

js onlymyhealth.com collected 2026-10-01 10:41:25 UTC 4,134 bytes, 1 lines download raw bytes

1(()=>{const t=t=>{const e=(t+"=".repeat((4-t.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),o=atob(e),n=new Uint8Array(o.length);for(let t=0;t<o.length;++t)n[t]=o.charCodeAt(t);return n};self.addEventListener("activate",async e=>{try{const e=await i(),o=await self.registration.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:t("BGejt8rFdf3KA4J434lytilkoN-yvn_0BaUw761SqU6jp_vYHmNF2hCNXnnseJOX5BgvMOAwiTcfLfbjBRALUyg")}),a=await(async(t,e)=>{let o=e?.device||"",n=e?.browser||"",i=e?.domain||"",a=e?.category||"",r=e?.lang||[];return(await fetch("https://web-push-notification-api.jagran.com/notification/save-subscription",{method:"post",headers:{"Content-type":"application/json",Authorization:"Bearer 5088e7346b40a1c0c0dc6e8bfa88c1d4"},body:JSON.stringify({data:t,device:o,browser:n,domain:i,lang:r,category:a})}).catch(t=>console.log("err",t))).json()})(o,e);n("wpId",a.id)}catch(t){console.log("active",t)}}),self.addEventListener("push",t=>{const o=t.data.json(),n={body:o.body,icon:o.img,actions:o.btn_List,data:{url:o.url,btn:o.btn_List,id:o.id,status:o.id},tag:o.id};o.image&&(n.image=o.image),e(o.id),self.registration.showNotification(o.title,n)});const e=async t=>{t&&await fetch("https://web-push-notification-api.jagran.com/notification/impression",{method:"post",headers:{"Content-type":"application/json",Authorization:"Bearer 5088e7346b40a1c0c0dc6e8bfa88c1d4"},body:JSON.stringify({id:t})}).catch(t=>console.log("impression api error",t))},o=async t=>{const e=await fetch("https://web-push-notification-api.jagran.com/notification/update-count",{method:"post",headers:{"Content-type":"application/json",Authorization:"Bearer 5088e7346b40a1c0c0dc6e8bfa88c1d4"},body:JSON.stringify(t)}).catch(t=>console.log("err",t));return await e.json(),e.json()};function n(t,e){const o=indexedDB.open("wpDb_omh",1);o.onupgradeneeded=t=>{const e=t.target.result;e.objectStoreNames.contains("wpStore")||e.createObjectStore("wpStore",{keyPath:"id"})},o.onsuccess=o=>{const n=o.target.result.transaction("wpStore","readwrite"),i=n.objectStore("wpStore");let a=e||"";i.put({id:t,value:a}),n.oncomplete=()=>{},n.onerror=t=>{console.error("Transaction error:",t.target.error)}},o.onerror=t=>{console.error("IndexedDB error:",t.target.errorCode)}}function i(){return new Promise((t,e)=>{const o=indexedDB.open("wpDb_omh",1);o.onsuccess=o=>{const n=o.target.result.transaction("wpStore","readonly").objectStore("wpStore").getAll();n.onsuccess=()=>{const e=n.result,o={};e.forEach(t=>{o[t.id]=t.value}),t(o)},n.onerror=()=>{e("Error retrieving data from IndexedDB")}},o.onerror=t=>{e("Error opening IndexedDB:",t.target.errorCode)}})}self.addEventListener("notificationclick",function(t){t.notification.close();let e=t.notification.data.url,n={count:1,id:t.notification.data.id};return"close"==t.action&&(n.close=1,o(n)),"btn1"==t.action?(t.notification.data.btn.forEach(t=>{"btn1"==t.action&&(e=t.url)}),n.btn1=1,o(n),void t.waitUntil(clients.openWindow(e))):"btn2"==t.action?(t.notification.data.btn.forEach(t=>{"btn2"==t.action&&(e=t.url)}),n.btn2=1,o(n),void t.waitUntil(clients.openWindow(e))):(o(n),void t.waitUntil(clients.openWindow(t.notification.data.url)))}),self.addEventListener("pushsubscriptionchange",async function(e){const o=await self.registration.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:t("BGejt8rFdf3KA4J434lytilkoN-yvn_0BaUw761SqU6jp_vYHmNF2hCNXnnseJOX5BgvMOAwiTcfLfbjBRALUyg")}),a=await i(),r=await(async(t,e)=>{let o=e?.device||"",n=e?.browser||"",i=e?.domain||"onlymyhealth.com",a=e?.category||"",r=e?.lang||["hi","en"];return(await fetch("https://web-push-notification-api.jagran.com/notification/renew-subscription",{method:"post",headers:{"Content-type":"application/json",Authorization:"Bearer 5088e7346b40a1c0c0dc6e8bfa88c1d4"},body:JSON.stringify({data:t,device:o,browser:n,domain:i,lang:r,category:a,type:"renew"})}).catch(t=>console.log("err",t))).json()})(o,a);n("wpId",r.id)}),self.addEventListener("install",t=>{self.skipWaiting()}),self.addEventListener("notificationclose",t=>{t.notification.close();let e={count:1,id:t.notification.data.id,close:1};o(e)})})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.