mirror of
https://github.com/Elvanos/fantasia-archive.git
synced 2024-09-29 16:51:21 +13:00
16 lines
352 B
TypeScript
16 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)
|
|
}
|