From 8b301a15843bdfcc442f64aa7a2bb9a3709c0060 Mon Sep 17 00:00:00 2001 From: D3SOX Date: Thu, 1 Feb 2024 16:12:44 +0100 Subject: [PATCH] chore(keybinds): fix linting --- src/main/index.ts | 2 +- src/renderer/patches/keybinds.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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" } ]