mirror of
https://github.com/Elvanos/fantasia-archive.git
synced 2024-05-18 11:13:15 +12: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)
|
|
}
|