remove Chromium Shortucut Keys, Ts Error Resolve
This commit is contained in:
parent
93704a70f6
commit
de44bdac72
|
|
@ -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,
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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 }
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue