async _receiveMessage(event) {
    if (!this._allowedOrigins.includes(event.origin)) {
      return;
    }

    if (!this._isJSONRPCRequest(event)) {
      return;
    }

    // Resolve the promise we created in the constructor with the saved
    // sidebar frame and origin.
    this._resolveSidebarWindow({
      frame: event.source,
      origin: event.origin,
    });

    const result = await this._jsonRPCResponse(event.data);
    /** @type {WindowProxy} */ (event.source).postMessage(result, event.origin);
  }
/**
   * Receive a JSON-RPC-postMessage request and respond to it.
   *
   * Receive a postMessage event and, if it's a JSON-RPC request from an
   * allowed origin, post back either a result or an error response.
   *
   * @param {MessageEvent} event
   */
Receive a JSON-RPC-postMessage request and respond to it.
Receive a postMessage event and, if it's a JSON-RPC request from an
allowed origin, post back either a result or an error response.


Receive a JSON - RPC - postMessage request and respond to it . Receive a postMessage event and if it ' s a JSON - RPC request from an allowed origin post back either a result or an error response .
async _receiveMessage(event) {
    if (!this._allowedOrigins.includes(event.origin)) {
      return;
    }
    if (!this._isJSONRPCRequest(event)) {
      return;
    }
    this._resolveSidebarWindow({
      frame: event.source,
      origin: event.origin,
    });
    const result = await this._jsonRPCResponse(event.data);
     (event.source).postMessage(result, event.origin);
  }
async _receiveMessage ( event ) { if ( ! this . _allowedOrigins . includes ( event . origin ) ) { return ; } if ( ! this . _isJSONRPCRequest ( event ) ) { return ; } this . _resolveSidebarWindow ( { frame : event . source , origin : event . origin , } ) ; const result = await this . _jsonRPCResponse ( event . data ) ; ( event . source ) . postMessage ( result , event . origin ) ; }
Receive a JSON-RPC-postMessage request and respond to it.
Receive a JSON - RPC - postMessage request and respond to it .
// Resolve the promise we created in the constructor with the saved // sidebar frame and origin. /** @type {WindowProxy} */