UNPKG

786 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.serverAppBridge = void 0;
4var Error_1 = require("../actions/Error");
5var noop = function () { };
6/**
7 * @internal
8 */
9exports.serverAppBridge = {
10 dispatch: function () {
11 return {};
12 },
13 error: function () {
14 return noop;
15 },
16 featuresAvailable: function () {
17 return Promise.reject(Error_1.fromAction('Feature detection is only available on the client side.', Error_1.AppActionType.WINDOW_UNDEFINED));
18 },
19 getState: function () {
20 return Promise.reject(Error_1.fromAction('State is only available on the client side.', Error_1.AppActionType.WINDOW_UNDEFINED));
21 },
22 localOrigin: '',
23 subscribe: function () {
24 return noop;
25 },
26};