aboutsummaryrefslogtreecommitdiffstats
path: root/packages/main/src/index.ts
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2021-12-26 00:27:39 +0100
committerLibravatar Kristóf Marussy <kristof@marussy.com>2021-12-26 00:36:24 +0100
commitede3747a1d5ef1dd9a6d74ba9600ca4f9bc452ed (patch)
treecd5b779f76d3c4e6a77865bbe13e0dc85deb0af1 /packages/main/src/index.ts
parentfeat: Disable main window devtools in production (diff)
downloadsophie-ede3747a1d5ef1dd9a6d74ba9600ca4f9bc452ed.tar.gz
sophie-ede3747a1d5ef1dd9a6d74ba9600ca4f9bc452ed.tar.zst
sophie-ede3747a1d5ef1dd9a6d74ba9600ca4f9bc452ed.zip
refactor: Simplify browserViewBounds handling
Diffstat (limited to 'packages/main/src/index.ts')
-rw-r--r--packages/main/src/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/main/src/index.ts b/packages/main/src/index.ts
index 22ae8e2..a135902 100644
--- a/packages/main/src/index.ts
+++ b/packages/main/src/index.ts
@@ -178,7 +178,7 @@ function createWindow(): Promise<unknown> {
178 178
179 browserView.webContents.userAgent = userAgent; 179 browserView.webContents.userAgent = userAgent;
180 autorun(() => { 180 autorun(() => {
181 browserView.setBounds(store.shared.browserViewBounds); 181 browserView.setBounds(store.browserViewBounds);
182 }); 182 });
183 mainWindow.setBrowserView(browserView); 183 mainWindow.setBrowserView(browserView);
184 184