mirror of
https://github.com/Elvanos/fantasia-archive.git
synced 2024-09-30 00:56:59 +13:00
17 lines
352 B
TypeScript
17 lines
352 B
TypeScript
|
import { Menu } from 'electron'
|
||
|
import os from 'os'
|
||
|
|
||
|
/**
|
||
|
* Gets the current OS string-indetifier
|
||
|
*/
|
||
|
export const tweakRetriveOS = () => {
|
||
|
return process.platform || os.platform()
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Removes the default menu from all current and future windows the current app
|
||
|
*/
|
||
|
export const tweakMenuRemover = () => {
|
||
|
Menu.setApplicationMenu(null)
|
||
|
}
|