mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 14:49:53 +00:00
This reverts commit 444877e1e1
.
This commit is contained in:
parent
8ff2c6b522
commit
2d5c80e079
@ -6,7 +6,6 @@
|
||||
http-equiv="Content-Security-Policy"
|
||||
content="font-src 'self' data:; connect-src * data: api: insomnia-event-source:; default-src * insomnia://*; img-src blob: data: * insomnia://*; script-src 'self' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src blob: data: mediastream: * insomnia://*;"
|
||||
/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<link rel="stylesheet" href="./ui/css/styles.css" />
|
||||
</head>
|
||||
|
||||
|
@ -156,7 +156,6 @@ const _launchApp = async () => {
|
||||
window = windowUtils.getOrCreateWindow();
|
||||
windowUtils.createHiddenBrowserWindow();
|
||||
window.webContents.send('shell:open', args.join());
|
||||
window.webContents.setZoomFactor(1);
|
||||
}
|
||||
});
|
||||
// Disable deep linking in playwright e2e tests in order to run multiple tests in parallel
|
||||
@ -171,8 +170,6 @@ const _launchApp = async () => {
|
||||
app.on('second-instance', (_1, args) => {
|
||||
console.log('Second instance listener received:', args.join('||'));
|
||||
window = windowUtils.getOrCreateWindow();
|
||||
window.webContents.setZoomFactor(1);
|
||||
|
||||
if (window) {
|
||||
if (window.isMinimized()) {
|
||||
window.restore();
|
||||
@ -184,13 +181,10 @@ const _launchApp = async () => {
|
||||
window.webContents.send('shell:open', lastArg);
|
||||
});
|
||||
window = windowUtils.getOrCreateWindow();
|
||||
window.webContents.setZoomFactor(1);
|
||||
|
||||
app.on('open-url', (_event, url) => {
|
||||
console.log('[main] Open Deep Link URL', url);
|
||||
window = windowUtils.getOrCreateWindow();
|
||||
window.webContents.setZoomFactor(1);
|
||||
|
||||
if (window) {
|
||||
if (window.isMinimized()) {
|
||||
window.restore();
|
||||
@ -204,7 +198,6 @@ const _launchApp = async () => {
|
||||
}
|
||||
} else {
|
||||
window = windowUtils.getOrCreateWindow();
|
||||
window.webContents.setZoomFactor(1);
|
||||
}
|
||||
|
||||
// Don't send origin header from Insomnia because we're not technically using CORS
|
||||
|
Loading…
Reference in New Issue
Block a user