diff options
author | 2022-07-02 05:13:38 +0530 | |
---|---|---|
committer | 2022-07-02 06:19:03 +0530 | |
commit | d16cc1f2c59818e53f28b4d6b4d27250331f15d7 (patch) | |
tree | 57bf4d149ec2be88dd0d351142998ce96db0d659 /src/electron/windowUtils.ts | |
parent | chore: correctly export/import ui elements (diff) | |
download | ferdium-app-d16cc1f2c59818e53f28b4d6b4d27250331f15d7.tar.gz ferdium-app-d16cc1f2c59818e53f28b4d6b4d27250331f15d7.tar.zst ferdium-app-d16cc1f2c59818e53f28b4d6b4d27250331f15d7.zip |
Use default exports instead of named exports
Diffstat (limited to 'src/electron/windowUtils.ts')
-rw-r--r-- | src/electron/windowUtils.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/electron/windowUtils.ts b/src/electron/windowUtils.ts index 9c9fd1b77..3621beb2f 100644 --- a/src/electron/windowUtils.ts +++ b/src/electron/windowUtils.ts | |||
@@ -1,6 +1,6 @@ | |||
1 | import { screen } from 'electron'; | 1 | import { screen } from 'electron'; |
2 | 2 | ||
3 | export function isPositionValid(position: { x: number; y: number }): boolean { | 3 | export default function isPositionValid(position: { x: number; y: number }): boolean { |
4 | const displays = screen.getAllDisplays(); | 4 | const displays = screen.getAllDisplays(); |
5 | const { x, y } = position; | 5 | const { x, y } = position; |
6 | return displays.some( | 6 | return displays.some( |