How to use the cross-domain-utils/src.WINDOW_TYPE function in cross-domain-utils

To help you get started, we’ve selected a few cross-domain-utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github krakenjs / zoid / dist / module / constants.js View on Github external
};
exports.INITIAL_PROPS = INITIAL_PROPS;
const WINDOW_REFERENCES = {
  OPENER: `opener`,
  TOP: `top`,
  PARENT: `parent`,
  GLOBAL: `global`
};
exports.WINDOW_REFERENCES = WINDOW_REFERENCES;
const PROP_SERIALIZATION = {
  JSON: 'json',
  DOTIFY: 'dotify',
  BASE64: 'base64'
};
exports.PROP_SERIALIZATION = PROP_SERIALIZATION;
const CONTEXT = _src.WINDOW_TYPE;
exports.CONTEXT = CONTEXT;
const WILDCARD = '*';
exports.WILDCARD = WILDCARD;
const DEFAULT_DIMENSIONS = {
  WIDTH: '300px',
  HEIGHT: '150px'
};
exports.DEFAULT_DIMENSIONS = DEFAULT_DIMENSIONS;
const EVENT = {
  RENDER: 'zoid-render',
  RENDERED: 'zoid-rendered',
  DISPLAY: 'zoid-display',
  ERROR: 'zoid-error',
  CLOSE: 'zoid-close',
  PROPS: 'zoid-props',
  RESIZE: 'zoid-resize'
github krakenjs / post-robot / dist / module / serialize / window.js View on Github external
getType: () => winPromise.then(win => {
      return (0, _src.getOpener)(win) ? _src.WINDOW_TYPE.POPUP : _src.WINDOW_TYPE.IFRAME;
    }),
    getInstanceID: (0, _src3.memoizePromise)(() => winPromise.then(win => (0, _lib.getWindowInstanceID)(win, {