We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42f790c commit 8956c7eCopy full SHA for 8956c7e
src/app/services/universal/index.js
@@ -0,0 +1,13 @@
1
+// @flow
2
+
3
4
+ /**
5
+ * Check if currently running in the browser or not
6
+ * -> useful for server side rendering
7
+ *
8
+ * @returns {boolean}
9
+ */
10
+export function isBrowserSide(): boolean {
11
+ return typeof window === 'object';
12
+}
13
0 commit comments