client: Hide native title bar setting on web

This commit is contained in:
Elian Doran
2024-08-16 21:41:15 +03:00
parent bd732386e4
commit 4a8c3d719f
5 changed files with 22 additions and 0 deletions

View File

@@ -85,6 +85,9 @@ function now() {
return formatTimeWithSeconds(new Date());
}
/**
* Returns `true` if the client is currently running under Electron, or `false` if running in a web browser.
*/
function isElectron() {
return !!(window && window.process && window.process.type);
}