Skip to content

Commit ab02b81

Browse files
committed
drop github file changes
1 parent 766d617 commit ab02b81

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

packages/selenium-ide/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "selenium-ide",
3-
"version": "4.0.1-alpha.76",
3+
"version": "4.0.1-alpha.77",
44
"private": false,
55
"description": "Selenium IDE electron app",
66
"author": "Todd <[email protected]>",

packages/selenium-ide/src/main/session/controllers/Windows/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -392,14 +392,14 @@ export default class WindowsController extends BaseController {
392392
positionKey: string
393393
) {
394394
this.arrangeWindow(window, sizeKey, positionKey)
395-
window.on('moved', () => {
395+
const recalculateEverything = () => {
396396
const position = window.getPosition() as [number, number]
397397
this.session.store.set(positionKey as any, position)
398-
})
399-
window.on('resize', () => {
400398
const size = window.getSize() as [number, number]
401399
this.session.store.set(sizeKey as any, size)
402-
})
400+
};
401+
window.on('moved', recalculateEverything)
402+
window.on('resize', recalculateEverything)
403403
}
404404

405405
async onProjectLoaded() {
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
import { MenuNames } from "./open"
1+
import { MenuNames } from './open'
22

33
export type Type = 'Handler'
44
/**
55
* Opens one of our available menu types, and returns the name of the selected option.
66
*/
7-
export type Shape = (
8-
name: MenuNames,
9-
...args: any[]
10-
) => Promise<any>
7+
export type Shape = (name: MenuNames, ...args: any[]) => Promise<any>

0 commit comments

Comments
 (0)