diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts new file mode 100644 index 0000000..7c4d0bd --- /dev/null +++ b/ts/00_commitinfo_data.ts @@ -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' +} diff --git a/ts/smartenv.classes.smartenv.ts b/ts/smartenv.classes.smartenv.ts index 80173b4..6d6d878 100644 --- a/ts/smartenv.classes.smartenv.ts +++ b/ts/smartenv.classes.smartenv.ts @@ -65,10 +65,10 @@ export class Smartenv { } public get runtimeEnv() { - if (typeof window !== 'undefined') { - return 'browser'; - } else if (typeof process !== 'undefined') { + if (typeof process !== 'undefined') { return 'node'; + } else { + return 'browser'; } }