Fix titlebar duplication with native Windows titlebar (#1890)

Co-authored-by: V <vendicated@riseup.net>
This commit is contained in:
Aubrey/オーブリー 2023-10-25 15:49:41 -05:00 committed by GitHub
parent ce6081c39b
commit 6c4afa52a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,7 +136,7 @@ if (IS_DISCORD_DESKTOP && Settings.winNativeTitleBar && navigator.platform.toLow
document.addEventListener("DOMContentLoaded", () => {
document.head.append(Object.assign(document.createElement("style"), {
id: "vencord-native-titlebar-style",
textContent: "[class*=titleBar-]{display: none!important}"
textContent: "[class*=titleBar]{display: none!important}"
}));
}, { once: true });
}