mirror of
https://github.com/Vencord/Vesktop.git
synced 2025-02-23 05:35:09 +00:00
add patch for visual refresh window controls
This commit is contained in:
parent
13aa97c0a5
commit
c419aa1390
1 changed files with 18 additions and 0 deletions
|
@ -21,6 +21,24 @@ if (Settings.store.customTitleBar)
|
|||
replace: 'case "WEB":'
|
||||
}
|
||||
]
|
||||
},
|
||||
// Visual Refresh
|
||||
{
|
||||
find: '"data-windows":',
|
||||
replacement: [
|
||||
{
|
||||
// TODO: Fix eslint rule
|
||||
// eslint-disable-next-line no-useless-escape
|
||||
match: /\i===\i\.PlatformTypes\.WINDOWS/g,
|
||||
replace: "true"
|
||||
},
|
||||
{
|
||||
// TODO: Fix eslint rule
|
||||
// eslint-disable-next-line no-useless-escape
|
||||
match: /\i===\i\.PlatformTypes\.WEB/g,
|
||||
replace: "false"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue