mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-09-11 02:56:06 +00:00
13 lines
369 B
JavaScript
13 lines
369 B
JavaScript
dump("SW created\n");
|
|
onconnect = function(evt) {
|
|
dump("SW onconnect\n");
|
|
evt.ports[0].onmessage = function(e) {
|
|
dump("SW onmessage\n");
|
|
var blob = new Blob(['123'], { type: 'text/plain' });
|
|
dump("SW blob created\n");
|
|
var url = URL.createObjectURL(blob);
|
|
dump("SW url created: " + url + "\n");
|
|
evt.ports[0].postMessage('alive \\o/');
|
|
};
|
|
}
|