Revert "fix: add viewport meta tag (#7049)" (#7090)

This reverts commit 444877e1e1.
This commit is contained in:
Filipe Freire 2024-02-14 11:10:36 +00:00 committed by GitHub
parent 8ff2c6b522
commit 2d5c80e079
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 8 deletions

View File

@ -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>

View File

@ -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