Skip to content

Commit 1e2bb35

Browse files
committed
Fixes post merge
1 parent 2c2d623 commit 1e2bb35

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

scripts/fetch-package.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ async function main(): Promise<number | undefined> {
147147
let haveDeploy = false;
148148
let expectedDeployDir = sc ? "../element-web/webapp" : path.join(deployDir, path.basename(filename).replace(/\.tar\.gz/, ''));
149149
try {
150-
await fs.opendirSync(expectedDeployDir);
150+
await fs.opendir(expectedDeployDir);
151151
console.log(expectedDeployDir + "already exists");
152152
haveDeploy = true;
153153
} catch (e) {

src/tray.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ function toggleWin(): void {
4646
}
4747

4848
const showWin = function() {
49-
if (global.mainWindow.isMinimized()) global.mainWindow.restore();
50-
if (!global.mainWindow.isVisible()) global.mainWindow.show();
51-
global.mainWindow.focus();
49+
if (global.mainWindow?.isMinimized()) global.mainWindow.restore();
50+
if (!global.mainWindow?.isVisible()) global.mainWindow?.show();
51+
global.mainWindow?.focus();
5252
};
5353

5454
const hideWin = function() {
55-
global.mainWindow.hide();
55+
global.mainWindow?.hide();
5656
};
5757

5858
interface IConfig {

0 commit comments

Comments
 (0)