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({
|
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
|
httpsAgent
|
||||||
// timeout: 10000,
|
// timeout: 10000,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@ app.on("ready", async () => {
|
||||||
show: true,
|
show: true,
|
||||||
skipTaskbar: true,
|
skipTaskbar: true,
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
devTools: true,
|
devTools: false,
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -164,17 +164,17 @@ app.on("ready", async () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
// app.on('browser-window-focus', () => {
|
app.on('browser-window-focus', () => {
|
||||||
// globalShortcut.register('CommandOrControl+R', () => {
|
globalShortcut.register('CommandOrControl+R', () => {
|
||||||
// // Do nothing; disables reload
|
// Do nothing; disables reload
|
||||||
// });
|
});
|
||||||
// globalShortcut.register('F5', () => {
|
globalShortcut.register('F5', () => {
|
||||||
// // Do nothing; disables reload
|
// Do nothing; disables reload
|
||||||
// });
|
});
|
||||||
// globalShortcut.register('CommandOrControl+Shift+I', () => {
|
globalShortcut.register('CommandOrControl+Shift+I', () => {
|
||||||
// // Do nothing; disables DevTools
|
// Do nothing; disables DevTools
|
||||||
// });
|
});
|
||||||
// });
|
});
|
||||||
|
|
||||||
// app.on('browser-window-blur', () => {
|
// app.on('browser-window-blur', () => {
|
||||||
// globalShortcut.unregisterAll();
|
// globalShortcut.unregisterAll();
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ test('', () => {
|
||||||
expect(template[0].label).toEqual('Show');
|
expect(template[0].label).toEqual('Show');
|
||||||
template[0]?.click?.(null as any, null as any, null as any);
|
template[0]?.click?.(null as any, null as any, null as any);
|
||||||
expect(mainWindow.show).toHaveBeenCalled();
|
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);
|
template[1]?.click?.(null as any, null as any, null as any);
|
||||||
expect(app.quit).toHaveBeenCalled();
|
expect(app.quit).toHaveBeenCalled();
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@ export const handleLogin = async (credentials: { email: string, password: string
|
||||||
try {
|
try {
|
||||||
console.log("➡️ Calling API...");
|
console.log("➡️ Calling API...");
|
||||||
const response = await axios.post(
|
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 } },
|
{ userDetails: { ...credentials } },
|
||||||
{ headers: { "ngrok-skip-browser-warning": 69420 }, httpsAgent }
|
{ headers: { "ngrok-skip-browser-warning": 69420 }, httpsAgent }
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue