diff --git a/src/components/settings/tabs/patchHelper/FullPatchInput.tsx b/src/components/settings/tabs/patchHelper/FullPatchInput.tsx index f4db51a19..68ec174c6 100644 --- a/src/components/settings/tabs/patchHelper/FullPatchInput.tsx +++ b/src/components/settings/tabs/patchHelper/FullPatchInput.tsx @@ -46,7 +46,7 @@ export function FullPatchInput({ setFind, setParsedFind, setMatch, setReplacemen } if (!replacement.match) throw new Error("No 'replacement.match' field"); - if (!replacement.replace) throw new Error("No 'replacement.replace' field"); + if (replacement.replace == null) throw new Error("No 'replacement.replace' field"); setFind(find instanceof RegExp ? `/${find.source}/` : find); setParsedFind(find); diff --git a/src/plugins/appleMusic.desktop/native.ts b/src/plugins/appleMusic.desktop/native.ts index c7dd40d2c..0cbddb949 100644 --- a/src/plugins/appleMusic.desktop/native.ts +++ b/src/plugins/appleMusic.desktop/native.ts @@ -4,7 +4,7 @@ * SPDX-License-Identifier: GPL-3.0-or-later */ -import { canonicalizeMatch } from "@utils/patches"; +import { VENCORD_USER_AGENT } from "@shared/vencordUserAgent"; import { execFile } from "child_process"; import { promisify } from "util"; @@ -26,24 +26,6 @@ interface RemoteData { let cachedRemoteData: { id: string, data: RemoteData; } | { id: string, failures: number; } | null = null; -const APPLE_MUSIC_BUNDLE_REGEX = /