tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

post_init_target_scoped_actors.js (517B)


      1 /* Any copyright is dedicated to the Public Domain.
      2   http://creativecommons.org/publicdomain/zero/1.0/ */
      3 
      4 "use strict";
      5 
      6 const { Actor } = require("resource://devtools/shared/protocol/Actor.js");
      7 
      8 class PostInitTargetScopedActor extends Actor {
      9  constructor(conn) {
     10    super(conn, { typeName: "postInitTargetScoped", methods: [] });
     11 
     12    this.requestTypes = {
     13      ping: this.onPing,
     14    };
     15  }
     16 
     17  onPing() {
     18    return { message: "pong" };
     19  }
     20 }
     21 
     22 exports.PostInitTargetScopedActor = PostInitTargetScopedActor;