fix(core): update

This commit is contained in:
2022-05-28 23:22:31 +02:00
parent f408337186
commit 33692ff417
2 changed files with 11 additions and 3 deletions

View File

@@ -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';
}
}