PageSourceSearch

https://www.rachanaranade.in/js/download-interop.js

js rachanaranade.in collected 2026-09-24 15:02:41 UTC 819 bytes, 19 lines download raw bytes

1// Generic file download helper — called from Blazor via IJSRuntime
2window.downloadFileFromBase64 = function (base64, fileName, mimeType) {
3    var bytes = Uint8Array.from(atob(base64), c => c.charCodeAt(0));
4    var blob  = new Blob([bytes], { type: mimeType });
5    var url   = URL.createObjectURL(blob);
6    var a     = document.createElement('a');
7    a.href     = url;
8    a.download = fileName;
9    document.body.appendChild(a);
10    a.click();
11    document.body.removeChild(a);
12    setTimeout(() => URL.revokeObjectURL(url), 5000);
13};
14
15// NOTE: window.ccavenueSubmit lives in ccavenue-interop.js. A duplicate
16// definition was previously here — removed because whichever script loaded
17// last would silently override the other, making bug fixes hard to track.
18// Single source of truth: ccavenue-interop.js.
19

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.