UNPKG

1.1 kBJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.offlineCase = exports.onlineCase = exports.startClientNavigationCase = void 0;
7
8var _actions = require("./actions");
9
10var _envReductions = require("./env-reductions");
11
12// eslint-disable-next-line no-unused-vars
13var startClientNavigationCase = function startClientNavigationCase(envState, payload) {
14 return [_actions.SHARYN_START_CLIENT_NAVIGATION, function () {
15 return (0, _envReductions.disableIsServerRender)(envState);
16 }];
17}; // eslint-disable-next-line no-unused-vars
18
19
20exports.startClientNavigationCase = startClientNavigationCase;
21
22var onlineCase = function onlineCase(envState, payload) {
23 return [_actions.SHARYN_ONLINE, function () {
24 return (0, _envReductions.setIsOnline)(envState, true);
25 }];
26}; // eslint-disable-next-line no-unused-vars
27
28
29exports.onlineCase = onlineCase;
30
31var offlineCase = function offlineCase(envState, payload) {
32 return [_actions.SHARYN_OFFLINE, function () {
33 return (0, _envReductions.setIsOnline)(envState, false);
34 }];
35};
36
37exports.offlineCase = offlineCase;
\No newline at end of file