mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-09-11 02:56:06 +00:00
13 lines
201 B
JavaScript
13 lines
201 B
JavaScript
"use strict";
|
|
|
|
this.onmessage = function (event) {
|
|
switch (event.data) {
|
|
case "ping":
|
|
setImmediate(function () {
|
|
postMessage("pong1");
|
|
});
|
|
postMessage("pong2");
|
|
break;
|
|
}
|
|
};
|