mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-02-15 07:28:59 +00:00
Rename files
This commit is contained in:
14
ts/util/toggleMaximizedBrowserWindow.std.ts
Normal file
14
ts/util/toggleMaximizedBrowserWindow.std.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
// Copyright 2021 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import type { BrowserWindow } from 'electron';
|
||||
|
||||
export function toggleMaximizedBrowserWindow(
|
||||
browserWindow: BrowserWindow
|
||||
): void {
|
||||
if (browserWindow.isMaximized()) {
|
||||
browserWindow.unmaximize();
|
||||
} else {
|
||||
browserWindow.maximize();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user