aboutsummaryrefslogtreecommitdiff
path: root/src/Vencord.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/Vencord.ts')
-rw-r--r--src/Vencord.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Vencord.ts b/src/Vencord.ts
index ac8579b..ba7d01f 100644
--- a/src/Vencord.ts
+++ b/src/Vencord.ts
@@ -95,3 +95,12 @@ async function init() {
}
init();
+
+if (!IS_WEB && Settings.winNativeTitleBar && navigator.platform.toLowerCase().startsWith("win")) {
+ document.addEventListener("DOMContentLoaded", () => {
+ document.head.append(Object.assign(document.createElement("style"), {
+ id: "vencord-native-titlebar-style",
+ textContent: "[class*=titleBar-]{display: none!important}"
+ }));
+ }, { once: true });
+}