doesitarm/helpers/environment.js
2022-05-08 10:57:16 -05:00

15 lines
340 B
JavaScript

import has from 'just-has'
export function isNuxt( VueThis ) {
return has( VueThis, [ '$nuxt' ])
}
// https://stackoverflow.com/a/8684009/1397641
export function isDarwin () {
if ( typeof navigator !== 'undefined' ) return false
if ( typeof process === 'undefined' ) return false
return process.platform === 'darwin'
}