Skip to content

Commit 0f27091

Browse files
authored
Remove app name title suffix under Electron + macOS (#237)
1 parent 3011e7a commit 0f27091

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

front_end/entrypoints/rn_fusebox/FuseboxWindowTitleManager.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ export class FuseboxWindowTitleManager {
4141
if (this.#suffix) {
4242
parts.push(this.#suffix);
4343
}
44-
parts.push('- React Native DevTools');
44+
// On macOS, window titles conventionally omit the app name
45+
if (!(navigator.userAgent.includes('Electron') && navigator.userAgent.includes('Macintosh'))) {
46+
parts.push('- React Native DevTools');
47+
}
4548

4649
document.title = parts.join(' ');
4750
}

0 commit comments

Comments
 (0)