fantasia-archive/src-electron/mainScripts/tweaks.ts
2023-09-13 00:13:51 +02:00

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)
}