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 a7027c0 commit 6229ef3Copy full SHA for 6229ef3
src/flow.js
@@ -2,6 +2,10 @@
2
* @license MIT
3
*/
4
(function(window, document, undefined) {'use strict';
5
+ if (!window || !document) {
6
+ console.warn('Flowjs needs window and document objects to work');
7
+ return;
8
+ }
9
// ie10+
10
var ie10plus = window.navigator.msPointerEnabled;
11
/**
@@ -1632,4 +1636,4 @@
1632
1636
define( "flow", [], function () { return Flow; } );
1633
1637
}
1634
1638
1635
-})(window, document);
1639
+})(typeof window !== 'undefined' && window, typeof document !== 'undefined' && document);
0 commit comments