aboutsummaryrefslogtreecommitdiff
path: root/src/webex/compat.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/webex/compat.ts')
-rw-r--r--src/webex/compat.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/webex/compat.ts b/src/webex/compat.ts
index 65ddfab4a..121c58e7f 100644
--- a/src/webex/compat.ts
+++ b/src/webex/compat.ts
@@ -26,3 +26,10 @@ export function isFirefox(): boolean {
}
return false;
}
+
+/**
+ * Check if we are running under nodejs.
+ */
+export function isNode() {
+ return (typeof process !== 'undefined') && (process.release.name === 'node')
+} \ No newline at end of file