tiny-rdm/frontend/src/utils/platform.js

13 lines
231 B
JavaScript

import { Environment } from 'wailsjs/runtime/runtime.js'
let os = ''
export async function loadEnvironment() {
const env = await Environment()
os = env.platform
}
export function isMacOS() {
return os === 'darwin'
}