Commit 57003379961d045ad830d7f296c7d85d38366021
better setting names
Anders Rune Jensen committed on 9/1/2017, 9:38:24 AMParent: 31a6b451195783f711ecd29057d9dc3ea60f92aa
Files changed
app/html/app.js | changed |
app/html/app.js | ||
---|---|---|
@@ -62,18 +62,18 @@ | ||
62 | 62 … | window.addEventListener('resize', function(e){ |
63 | 63 … | var wc = electron.remote.getCurrentWebContents() |
64 | 64 … | wc && wc.getZoomFactor((zf) => { |
65 | 65 … | api.settings.sync.set({ |
66 | - zoomFactor: zf, | |
67 | - bounds: electron.remote.getCurrentWindow().getBounds() | |
66 … | + 'electron-zoomFactor': zf, | |
67 … | + 'electron-windowBounds': electron.remote.getCurrentWindow().getBounds() | |
68 | 68 … | }) |
69 | 69 … | }) |
70 | 70 … | }) |
71 | 71 … | |
72 | - var zoomFactor = api.settings.sync.get('zoom') | |
72 … | + var zoomFactor = api.settings.sync.get('electron-zoomFactor') | |
73 | 73 … | if (zoomFactor) |
74 | 74 … | electron.remote.getCurrentWebContents().setZoomFactor(zoomFactor) |
75 | - var bounds = api.settings.sync.get('bounds') | |
75 … | + var bounds = api.settings.sync.get('electron-windowBounds') | |
76 | 76 … | if (bounds) |
77 | 77 … | electron.remote.getCurrentWindow().setBounds(bounds) |
78 | 78 … | |
79 | 79 … | return App |
Built with git-ssb-web