Files

9 lines
165 B
JavaScript

self.onmessage = (event) => {
if (event.data === 'ping') {
self.postMessage(`pong ${self.location.href}`)
}
}
// for sourcemap
console.log('sub-worker.js')