diff --git a/src/main/index.ts b/src/main/index.ts index 12f50d4..7531f47 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -11,12 +11,12 @@ import { checkUpdates } from "updater/main"; import { DATA_DIR } from "./constants"; import { createFirstLaunchTour } from "./firstLaunch"; +import { registerKeybindsHandler } from "./keybinds"; import { createWindows, mainWin } from "./mainWindow"; import { registerMediaPermissionsHandler } from "./mediaPermissions"; import { registerScreenShareHandler } from "./screenShare"; import { Settings, State } from "./settings"; import { isDeckGameMode } from "./utils/steamOS"; -import { registerKeybindsHandler } from "./keybinds"; if (IS_DEV) { require("source-map-support").install(); diff --git a/src/renderer/patches/keybinds.tsx b/src/renderer/patches/keybinds.tsx index e5da69c..adb1ad2 100644 --- a/src/renderer/patches/keybinds.tsx +++ b/src/renderer/patches/keybinds.tsx @@ -24,7 +24,8 @@ addPatch({ find: "Messages.KEYBIND_IN_BROSWER_NOTICE", replacement: [ { - match: /(\i)\.isPlatformEmbedded/, + // eslint-disable-next-line no-useless-escape + match: /\i\.isPlatformEmbedded/, replace: "true" } ]