Skip to content

Commit

Permalink
fix(desktop): fix cr
Browse files Browse the repository at this point in the history
  • Loading branch information
Matrixbirds committed Nov 12, 2021
1 parent d118e0c commit e99ae2a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions desktop/main-app/src/window-manager/window-main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { RxSubject } from "./rx-subject";
import { ipcMain } from "electron";
import { zip } from "rxjs";
import { ignoreElements, mergeMap } from "rxjs/operators";
import path = require("path");
import path from "path";

export class WindowMain extends AbstractWindow {
public readonly name = constants.WindowsName.Main;
Expand Down Expand Up @@ -39,7 +39,7 @@ export class WindowMain extends AbstractWindow {
this.injectAgoraSDKAddon(customWindow);

if (process.env.NODE_ENV === "development") {
this.injectExtensions(customWindow, "react-devtools");
WindowMain.loadExtensions(customWindow, "react-devtools");
}

return customWindow;
Expand All @@ -51,7 +51,7 @@ export class WindowMain extends AbstractWindow {
});
}

private injectExtensions(win: CustomWindow, extensionName: string): void {
private static loadExtensions(win: CustomWindow, extensionName: "react-devtools"): void {
const extPath = path.resolve(
process.cwd(),
`../../third_party/extensions/${extensionName}`,
Expand Down

0 comments on commit e99ae2a

Please sign in to comment.