PageSourceSearch

https://www.royalroad.com/dist/v4/notifications-I6JAKIKV.modern.js

js royalroad.com collected 2026-10-01 10:14:52 UTC 1,410 bytes, 5 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="da4b124d-3873-5129-82da-4406fedf117d")}catch(e){}}();
3import{k as e}from"/dist/v4/chunk-RDSTICTE.modern.js";e();var c=class s{static async init(){await s.setupDismissHandlers()}static async setupDismissHandlers(){let i=document.getElementById("notifications-container");i==null||i.querySelectorAll(".dismiss-notification").forEach(o=>{o.addEventListener("click",async n=>{let t=o.dataset.notification;t&&await s.dismissNotification(t,o)})})}static async dismissNotification(i,o){try{if((await fetch("/notifications/dismiss?id=".concat(i),{credentials:"same-origin",headers:{"X-Requested-With":"XMLHttpRequest"}})).ok){let t=o.closest(".notification-item");t&&(t.style.transition="opacity 200ms ease-out",t.style.opacity="0",setTimeout(()=>{t.remove(),s.checkNotificationCountAndShowNoNotifs()},200))}}catch(n){console.error("Failed to dismiss notification:",n)}}static checkNotificationCountAndShowNoNotifs(){document.getElementById("notifications-container").querySelectorAll(".notification-item").length===0&&document.querySelector("#no-notifications").classList.remove("hidden")}};export{c as default};
4
5//# debugId=da4b124d-3873-5129-82da-4406fedf117d

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.