⚝
One Hat Cyber Team
⚝
Your IP:
216.73.217.4
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
grafana
/
public
/
app
/
core
/
utils
/
View File Name :
CorsWorker.ts
// works with webpack plugin: scripts/webpack/plugins/CorsWorkerPlugin.js export class CorsWorker extends window.Worker { constructor(url: URL, options?: WorkerOptions) { // by default, worker inherits HTML document's location and pathname which leads to wrong public path value // the CorsWorkerPlugin will override it with the value based on the initial worker chunk, ie. // initial worker chunk: http://host.com/cdn/scripts/worker-123.js // resulting public path: http://host.com/cdn/scripts const scriptUrl = url.toString(); const urlParts = scriptUrl.split('/'); urlParts.pop(); const scriptsBasePathUrl = `${urlParts.join('/')}/`; const importScripts = `importScripts('${scriptUrl}');`; const objectURL = URL.createObjectURL( new Blob([`__webpack_worker_public_path__ = '${scriptsBasePathUrl}'; ${importScripts}`], { type: 'application/javascript', }) ); super(objectURL, options); URL.revokeObjectURL(objectURL); } }