mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Add isDarwin helper
This commit is contained in:
parent
4b3c9d1e9a
commit
d37bf33095
1 changed files with 9 additions and 0 deletions
|
|
@ -4,3 +4,12 @@ import has from 'just-has'
|
||||||
export function isNuxt( VueThis ) {
|
export function isNuxt( VueThis ) {
|
||||||
return has( VueThis, [ '$nuxt' ])
|
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'
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue