UNPKG

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