PageSourceSearch

https://easypathuni.com/tutor-push-notification.js

js easypathuni.com collected 2026-10-01 15:27:58 UTC 2,148 bytes, 11 lines download raw bytes

1(()=>{var e={};// The module cache
2var n={};// The require function
3function t(r){// Check if module is in cache
4var i=n[r];if(i!==undefined){return i.exports}// Create a new module (and put it into the cache)
5var o=n[r]={exports:{}};// Execute the module function
6e[r](o,o.exports,t);// Return the exports of the module
7return o.exports}// webpack/runtime/rspack_version
8(()=>{t.rv=()=>"1.6.5"})();// webpack/runtime/rspack_unique_id
9(()=>{t.ruid="[email protected]"})();var r;function i(){if(!r){r=a("meta_data","client")}return r}function o(e){return new Promise((n,t)=>{e.oncomplete=e.onsuccess=()=>n(e.result);e.onabort=e.onerror=()=>t(e.error)})}function a(e,n){var t=indexedDB.open(e);t.onupgradeneeded=()=>t.result.createObjectStore(n);var r=o(t);return(e,t)=>r.then(r=>t(r.transaction(n,e).objectStore(n)))}function c(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:i();return n("readonly",n=>o(n.get(e)))}function s(e,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:i();return t("readwrite",t=>{t.put(n,e);return o(t.transaction)})}self.addEventListener("push",function(e){if(!self.registration){console.warn("Notification not Registered.");return}var n=e.data.json();c("client_id").then(e=>{c("browser_key").then(t=>{var r=!n.client_id||!e||n.client_id!=e;var i=!n.browser_key||!t||n.browser_key!=t;if(i||r){return}// Post message to open active client windows (tabs) to display drawer.
10if(self.clients){self.clients.matchAll({type:"window",includeUncontrolled:true}).then(function(e){if(e){e.forEach(function(e){e.postMessage({type:"tutor_push_notification_received",payload:n})})}})}self.registration.showNotification(n.title,n)})})});self.addEventListener("notificationclick",function(e){if(e.notification.data.url){// Open the specified URL on notification click
11clients.openWindow(e.notification.data.url)}e.notification.close()});self.addEventListener("message",function(e){var n=JSON.parse(e.data);s("client_id",n.client_id).then(()=>{}).catch(e=>console.warn("Client ID saving failed!",e));s("browser_key",n.browser_key).then(()=>{}).catch(e=>console.warn("Browser ID saving failed!",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.