text: 'use strict';
  
  Object.defineProperty(exports, '__esModule', {
    value: true,
  });
  exports.default = getInitialStateRenderer;
  
  var _electron = require('electron');
  
  function getInitialStateRenderer() {
    var getReduxState = _electron.remote.getGlobal('getReduxState');
  
    if (!getReduxState) {
      throw new Error(
        'Could not find reduxState global in main process, did you forget to call replayActionMain?',
      );
    }
  
    return JSON.parse(getReduxState());
  }
  