@shopify/app-bridge
Version:
**Shopify is doubling our engineering staff in 2021! [Join our team and work on libraries like this one.](https://smrtr.io/5GGrc)**
27 lines (26 loc) • 786 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.serverAppBridge = void 0;
var Error_1 = require("../actions/Error");
var noop = function () { };
/**
* @internal
*/
exports.serverAppBridge = {
dispatch: function () {
return {};
},
error: function () {
return noop;
},
featuresAvailable: function () {
return Promise.reject(Error_1.fromAction('Feature detection is only available on the client side.', Error_1.AppActionType.WINDOW_UNDEFINED));
},
getState: function () {
return Promise.reject(Error_1.fromAction('State is only available on the client side.', Error_1.AppActionType.WINDOW_UNDEFINED));
},
localOrigin: '',
subscribe: function () {
return noop;
},
};