Skip to content

Commit e1d625d

Browse files
committed
Remove unnecessary code
1 parent 1072880 commit e1d625d

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/ui/menu.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,14 +152,9 @@ async function menu(_ui: UI) {
152152
if (window.innerHeight !== correctHeight ||
153153
window.innerWidth !== correctWidth) {
154154
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);
160155
chrome.windows.update(
161156
currentWindow.id,
162-
{height: adjustedHeight, width: adjustedWidth});
157+
{height: correctHeight, width: correctWidth});
163158
});
164159
}
165160
},

0 commit comments

Comments
 (0)