MCPcopy Create free account
hub / github.com/Kong/insomnia / constructor

Method constructor

packages/insomnia/src/main/git/git-ipc-handler.ts:17–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15 channel = 'git';
16
17 constructor() {
18 super();
19 onNativeSignInStatus(status => {
20 for (const window of BrowserWindow.getAllWindows()) {
21 window.webContents.send('git.native-sign-in-status', status);
22 }
23 });
24 onNativeCredentialError(error => {
25 for (const window of BrowserWindow.getAllWindows()) {
26 window.webContents.send('git.native-credential-error', error);
27 }
28 });
29 }
30
31 /** Cancel a System Git Credentials sign-in that is waiting for the user. */
32 cancelNativeSignIn(_sender: Electron.WebContents, id: string) {

Callers

nothing calls this directly

Calls 3

onNativeSignInStatusFunction · 0.90
onNativeCredentialErrorFunction · 0.90
sendMethod · 0.45

Tested by

no test coverage detected