|
@@ -5,11 +5,11 @@ import { UnsupportedMobileBrowser } from '../../unsupported-browser';
|
5
|
5
|
* Array of rules defining whether we should intercept component to render
|
6
|
6
|
* or not.
|
7
|
7
|
*
|
8
|
|
- * @type {Array<Function>}
|
9
|
|
- * @param {Object} state - Redux state object.
|
|
8
|
+ * @private
|
10
|
9
|
* @returns {ReactElement|void}
|
|
10
|
+ * @type {Function[]}
|
11
|
11
|
*/
|
12
|
|
-const RULES = [
|
|
12
|
+const _RULES = [
|
13
|
13
|
|
14
|
14
|
/**
|
15
|
15
|
* This rule describes case when user opens application using mobile
|
|
@@ -46,7 +46,7 @@ export function interceptComponent(stateOrGetState, currentComponent) {
|
46
|
46
|
? stateOrGetState()
|
47
|
47
|
: stateOrGetState;
|
48
|
48
|
|
49
|
|
- for (const rule of RULES) {
|
|
49
|
+ for (const rule of _RULES) {
|
50
|
50
|
result = rule(state);
|
51
|
51
|
if (result) {
|
52
|
52
|
break;
|