Skip to content

Commit

Permalink
add unimplemented method
Browse files Browse the repository at this point in the history
  • Loading branch information
arvid220u committed Jul 12, 2022
1 parent 3506557 commit c1386a0
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion gui/src/main/preload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// SPDX-License-Identifier: GPL-3.0-only
//

import { contextBridge, clipboard } from "electron";
import { contextBridge, clipboard, contentTracing } from "electron";
import { promisify } from "util";
import grpc from "@grpc/grpc-js";
import daemonM from "../daemon/schema/daemon_pb";
Expand Down Expand Up @@ -303,6 +303,17 @@ contextBridge.exposeInMainWorld(
}
);

contextBridge.exposeInMainWorld(
"getOutboxMessages",
async (
getOutboxMessagesRequest: daemon_pb.GetOutboxMessagesRequest.AsObject
): Promise<daemon_pb.GetOutboxMessagesResponse> => {
// unimplemented
console.error("getOutboxMessages not implemented");
throw new Error("getOutboxMessages not implemented");
}
);

contextBridge.exposeInMainWorld("getOutboxMessagesOLD", async () => {
if (FAKE_DATA) {
return [
Expand Down

0 comments on commit c1386a0

Please sign in to comment.