2024-07-22 12:13:59 +05:30
|
|
|
import { app, screen } from "electron";
|
|
|
|
|
let screenWidth, screenHeight;
|
2024-07-22 13:21:44 +05:30
|
|
|
|
2024-07-22 12:13:59 +05:30
|
|
|
app.on("ready", () => {
|
|
|
|
|
({ width: screenWidth, height: screenHeight } = screen.getPrimaryDisplay().workAreaSize);
|
|
|
|
|
});
|
|
|
|
|
|
2024-07-22 13:21:44 +05:30
|
|
|
export function getScreenWidth() {
|
2024-07-22 12:13:59 +05:30
|
|
|
return screenWidth;
|
|
|
|
|
}
|
|
|
|
|
|
2024-07-22 13:21:44 +05:30
|
|
|
export function getScreenHeight() {
|
2024-07-22 12:13:59 +05:30
|
|
|
return screenHeight;
|
|
|
|
|
}
|