diff --git a/src/renderer/patches/windowsTitleBar.tsx b/src/renderer/patches/windowsTitleBar.tsx index ce2fd2c..1b9e180 100644 --- a/src/renderer/patches/windowsTitleBar.tsx +++ b/src/renderer/patches/windowsTitleBar.tsx @@ -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" + } + ] } ] });