Skip to content

Commit

Permalink
fix: title bar on overlay and precise find match
Browse files Browse the repository at this point in the history
  • Loading branch information
FedeIlLeone committed Nov 24, 2024
1 parent 235be12 commit 41f026f
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/renderer/coremods/titlebar/plaintextPatches.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,13 @@ const generalSettings = await init<GeneralSettings, keyof typeof defaultSettings
export default (DiscordNative.process.platform.includes("linux") && generalSettings.get("titlebar")
? [
{
find: "macOSFrame:!0",
find: ".appAsidePanelWrapper,",
replacements: [
{
match: /\[.&&(null!=.\?)/,
replace: (_, suffix: string) => `[${suffix}`,
match: /\(0,.\.getPlatform\)\(\)/,
replace: `"WINDOWS"`,
},
],
},
{
find: "renderWindow:window",
replacements: [{ match: /\(0,.\.getPlatform\)\(\)/, replace: () => `"WINDOWS"` }],
},
]
: []) as PlaintextPatch[];

0 comments on commit 41f026f

Please sign in to comment.