text: // urlParams is null when used for embedding
  var ipcRenderer = require('electron').ipcRenderer;
  //electron 针对electron更改开始
  window.prompt = function (title, val) {
      return ipcRenderer.sendSync('prompt', { title, val });
  }
  var env = process.env.NODE_ENV;
  var apiHost = env === "development" ? "http://127.0.0.1:8090" : "https://api.yidpu.com";
  window.apiHost = apiHost;
  //electron 针对electron更改结束
  window.urlParams = window.urlParams || {};
  window.authorization = window.localStorage.getItem("Authorization");
  
  // Public global variables
  window.MAX_REQUEST_SIZE = window.MAX_REQUEST_SIZE  || 10485760;
  window.MAX_AREA = window.MAX_AREA || 15000 * 15000;
  
  // URLs for save and export
  window.STATUS_URL = window.STATUS_URL || window.apiHost + '/api/status';
  window.EXPORT_URL = window.EXPORT_URL || '/export';
  window.SAVE_URL = window.SAVE_URL || window.apiHost + '/api/floorPlan/save';
  window.LIST_URL = window.LIST_URL || window.apiHost + '/api/floor/list';
  window.OPEN_URL = window.OPEN_URL || window.apiHost + '/api/floorPlan/open';
  window.READ_URL = window.READ_URL || window.apiHost + '/api/floorPlan/read';
  window.RESOURCES_PATH = window.RESOURCES_PATH || 'resources';
  window.RESOURCE_BASE = window.RESOURCE_BASE || window.RESOURCES_PATH + '/grapheditor';
  window.STENCIL_PATH = window.STENCIL_PATH || 'stencils';
  window.IMAGE_PATH = window.IMAGE_PATH || 'images';
  window.STYLE_PATH = window.STYLE_PATH || 'styles';
  window.CSS_PATH = window.CSS_PATH || 'styles';
  window.OPEN_FORM = window.OPEN_FORM || 'openFloorPlan.html';
  
  // Sets the base path, the UI language via URL param and configures the
  // supported languages to avoid 404s. The loading of all core language
  // resources is disabled as all required resources are in grapheditor.
  // properties. Note that in this example the loading of two resource
  // files (the special bundle and the default bundle) is disabled to
  // save a GET request. This requires that all resources be present in
  // each properties file since only one file is loaded.
  window.mxBasePath = window.mxBasePath || 'src';
  window.mxLanguage = window.mxLanguage || urlParams['lang'] || 'zh';
  window.mxLanguages = window.mxLanguages || ['zh'];
  