mirror of
https://github.com/agam778/MS-365-Electron.git
synced 2026-02-17 09:02:10 +00:00
- Moved several utility and configuration files (rpc.js, store.js, dimensions.js, and menu.js) to a new `config` directory to improve project organization. - This refactor does not affect the functionality of the app.
15 lines
314 B
JavaScript
15 lines
314 B
JavaScript
import { app, screen } from "electron";
|
|
let screenWidth, screenHeight;
|
|
|
|
app.on("ready", () => {
|
|
({ width: screenWidth, height: screenHeight } = screen.getPrimaryDisplay().workAreaSize);
|
|
});
|
|
|
|
export function getScreenWidth() {
|
|
return screenWidth;
|
|
}
|
|
|
|
export function getScreenHeight() {
|
|
return screenHeight;
|
|
}
|