2019-09-15 23:12:15 +02:00
|
|
|
import { isDarwinApp } from "./desktop";
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Determine whether the title bar is being displayed.
|
|
|
|
* This might be useful in cases where styles are dependent on the title bar's visibility, such as heights.
|
|
|
|
*
|
|
|
|
* @returns Boolean dictating if the title bar is visible
|
|
|
|
*/
|
|
|
|
export function isAppbarExpanded(): boolean {
|
2019-09-18 19:52:39 +02:00
|
|
|
return isDarwinApp() || process.env.NODE_ENV === "development";
|
|
|
|
}
|