diff --git a/src/main/main.ts b/src/main/main.ts index 2bf36042..6cf82c74 100644 --- a/src/main/main.ts +++ b/src/main/main.ts @@ -21,7 +21,6 @@ import { BSLauncherService } from "./services/bs-launcher/bs-launcher.service"; import { IpcRequest } from "shared/models/ipc"; import { LivShortcut } from "./services/liv/liv-shortcut.service"; import { SteamLauncherService } from "./services/bs-launcher/steam-launcher.service"; -import { OculusLauncherService } from "./services/bs-launcher/oculus-launcher.service"; const isDebug = process.env.NODE_ENV === "development" || process.env.DEBUG_PROD === "true"; diff --git a/src/main/services/bs-version-download/bs-oculus-downloader.service.ts b/src/main/services/bs-version-download/bs-oculus-downloader.service.ts index b3e8305b..81d335f8 100644 --- a/src/main/services/bs-version-download/bs-oculus-downloader.service.ts +++ b/src/main/services/bs-version-download/bs-oculus-downloader.service.ts @@ -58,7 +58,7 @@ export class BsOculusDownloaderService { log.info("Token contains | which usually indicates an application token which is not valid for user tokens"); return false; } - if(token.match(/OC[0-9]{15}/)){ + if(token.match(/OC\d{15}/)){ log.info("Token matches /OC[0-9}{15}/ which usually indicates a changed oculus store token"); return false; } diff --git a/src/main/services/window-manager.service.ts b/src/main/services/window-manager.service.ts index 47c8f28e..e4cdf33c 100644 --- a/src/main/services/window-manager.service.ts +++ b/src/main/services/window-manager.service.ts @@ -1,4 +1,4 @@ -import { app, BrowserWindow, BrowserWindowConstructorOptions, shell, WebContents } from "electron"; +import { app, BrowserWindow, BrowserWindowConstructorOptions, shell } from "electron"; import { resolveHtmlPath } from "../util"; import { UtilsService } from "./utils.service"; import { AppWindow } from "shared/models/window-manager/app-window.model"; diff --git a/src/renderer/components/svgs/icons/oculus-icon.component.tsx b/src/renderer/components/svgs/icons/oculus-icon.component.tsx index ec44e16d..dc2484fc 100644 --- a/src/renderer/components/svgs/icons/oculus-icon.component.tsx +++ b/src/renderer/components/svgs/icons/oculus-icon.component.tsx @@ -1,4 +1,4 @@ -import { forwardRef, HTMLProps } from "react"; +import { HTMLProps } from "react"; export function OculusIcon(props: HTMLProps) { return ( diff --git a/src/renderer/pages/available-versions-list.components.tsx b/src/renderer/pages/available-versions-list.components.tsx index ae158336..989c6c6b 100644 --- a/src/renderer/pages/available-versions-list.components.tsx +++ b/src/renderer/pages/available-versions-list.components.tsx @@ -11,7 +11,6 @@ import { useService } from "renderer/hooks/use-service.hook"; import { BSVersion } from "shared/bs-version.interface"; import { useObservable } from "renderer/hooks/use-observable.hook"; import { BsDownloaderService } from "renderer/services/bs-version-download/bs-downloader.service"; -import { BsStore } from "shared/models/bs-store.enum"; export const AvailableVersionsContext = createContext<{ selectedVersion: BSVersion; setSelectedVersion: (version: BSVersion) => void }>(null);