1
0
mirror of https://github.com/roytam1/UXP.git synced 2026-06-16 13:28:45 +00:00
Files
UXP/devtools/server/tests/unit/post_init_global_actors.js
T

18 lines
475 B
JavaScript

/* Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ */
function PostInitGlobalActor(aConnection) {}
PostInitGlobalActor.prototype = {
actorPrefix: "postInitGlobal",
onPing: function onPing(aRequest) {
return { message: "pong" };
},
};
PostInitGlobalActor.prototype.requestTypes = {
"ping": PostInitGlobalActor.prototype.onPing,
};
DebuggerServer.addGlobalActor(PostInitGlobalActor, "postInitGlobalActor");