diff --git a/src/electron/api/axiosClient.ts b/src/electron/api/axiosClient.ts index c42b094..7928050 100644 --- a/src/electron/api/axiosClient.ts +++ b/src/electron/api/axiosClient.ts @@ -12,7 +12,7 @@ const httpsAgent = new https.Agent({ }); const api: AxiosInstance = axios.create({ - baseURL: 'https://quality-friendly-goldfish.ngrok-free.app/api/v1/va', // 🔁 your backend + baseURL: 'https://daniela-nonprofessed-boastfully.ngrok-free.app/api/v1/va', // 🔁 your backend httpsAgent // timeout: 10000, }); diff --git a/src/electron/main.ts b/src/electron/main.ts index 943d6cc..2e6f53d 100644 --- a/src/electron/main.ts +++ b/src/electron/main.ts @@ -68,7 +68,7 @@ app.on("ready", async () => { show: true, skipTaskbar: true, webPreferences: { - devTools: true, + devTools: false, } }); @@ -164,17 +164,17 @@ app.on("ready", async () => { }); -// app.on('browser-window-focus', () => { -// globalShortcut.register('CommandOrControl+R', () => { -// // Do nothing; disables reload -// }); -// globalShortcut.register('F5', () => { -// // Do nothing; disables reload -// }); -// globalShortcut.register('CommandOrControl+Shift+I', () => { -// // Do nothing; disables DevTools -// }); -// }); +app.on('browser-window-focus', () => { + globalShortcut.register('CommandOrControl+R', () => { + // Do nothing; disables reload + }); + globalShortcut.register('F5', () => { + // Do nothing; disables reload + }); + globalShortcut.register('CommandOrControl+Shift+I', () => { + // Do nothing; disables DevTools + }); +}); // app.on('browser-window-blur', () => { // globalShortcut.unregisterAll(); diff --git a/src/electron/tray.test.ts b/src/electron/tray.test.ts index e149a07..9af5928 100644 --- a/src/electron/tray.test.ts +++ b/src/electron/tray.test.ts @@ -35,7 +35,7 @@ test('', () => { expect(template[0].label).toEqual('Show'); template[0]?.click?.(null as any, null as any, null as any); expect(mainWindow.show).toHaveBeenCalled(); - expect(app.dock.show).toHaveBeenCalled(); + expect(app.dock!.show).toHaveBeenCalled(); template[1]?.click?.(null as any, null as any, null as any); expect(app.quit).toHaveBeenCalled(); diff --git a/src/electron/utils/utilityFunctions.ts b/src/electron/utils/utilityFunctions.ts index c09a7ab..0a15c7d 100644 --- a/src/electron/utils/utilityFunctions.ts +++ b/src/electron/utils/utilityFunctions.ts @@ -68,7 +68,7 @@ export const handleLogin = async (credentials: { email: string, password: string try { console.log("➡️ Calling API..."); const response = await axios.post( - 'https://quality-friendly-goldfish.ngrok-free.app/api/v1/va/login', + 'https://daniela-nonprofessed-boastfully.ngrok-free.app/api/v1/va/login', { userDetails: { ...credentials } }, { headers: { "ngrok-skip-browser-warning": 69420 }, httpsAgent } );