We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1072880 commit e1d625dCopy full SHA for e1d625d
1 file changed
src/ui/menu.ts
@@ -152,14 +152,9 @@ async function menu(_ui: UI) {
152
if (window.innerHeight !== correctHeight ||
153
window.innerWidth !== correctWidth) {
154
chrome.windows.getCurrent((currentWindow) => {
155
- // window update to correct size
156
- const adjustedHeight =
157
- window.innerHeight + (correctHeight - window.innerHeight);
158
- const adjustedWidth =
159
- window.innerWidth + (correctWidth - window.innerWidth);
160
chrome.windows.update(
161
currentWindow.id,
162
- {height: adjustedHeight, width: adjustedWidth});
+ {height: correctHeight, width: correctWidth});
163
});
164
}
165
},
0 commit comments