fix(core): update
This commit is contained in:
parent
f408337186
commit
33692ff417
8
ts/00_commitinfo_data.ts
Normal file
8
ts/00_commitinfo_data.ts
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* autocreated commitinfo by @pushrocks/commitinfo
|
||||||
|
*/
|
||||||
|
export const commitinfo = {
|
||||||
|
name: '@pushrocks/smartenv',
|
||||||
|
version: '5.0.2',
|
||||||
|
description: 'store things about your environment and let them travel across modules'
|
||||||
|
}
|
@ -65,10 +65,10 @@ export class Smartenv {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public get runtimeEnv() {
|
public get runtimeEnv() {
|
||||||
if (typeof window !== 'undefined') {
|
if (typeof process !== 'undefined') {
|
||||||
return 'browser';
|
|
||||||
} else if (typeof process !== 'undefined') {
|
|
||||||
return 'node';
|
return 'node';
|
||||||
|
} else {
|
||||||
|
return 'browser';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user