<!DOCTYPE html>
<html style="background: #fff">
<head>
  <title></title>

  <script>
    window.onload = function() {
      var currentWindow = require('remote').getCurrentWindow();
      try {
        require('coffee-script');
        require('../src/coffee-cache');
        Object.defineProperty(require.extensions, '.coffee', {
          writable: false,
          value: require.extensions['.coffee']
        });
        require(currentWindow.loadSettings.bootstrapScript);
        currentWindow.emit('window:loaded');
      }
      catch (error) {
        currentWindow.show();
        currentWindow.openDevTools();
        console.error(error.stack || error);
      }
    }
  </script>
</head>
<body>
</body>
</html>

<!DOCTYPE html>
<html style="background: #fff">
<head>
  <title></title>

  <script>
    window.onload = function() {
      var currentWindow = require('remote').getCurrentWindow();
      try {
        require('coffee-script');
        require('../src/coffee-cache');
        Object.defineProperty(require.extensions, '.coffee', {
          writable: false,
          value: require.extensions['.coffee']
        });
        require(currentWindow.loadSettings.bootstrapScript);
        currentWindow.emit('window:loaded');
      }
      catch (error) {
        currentWindow.setSize(800, 600);
        currentWindow.center();
        currentWindow.show();
        currentWindow.openDevTools();
        console.error(error.stack || error);
      }
    }
  </script>
</head>
<body>
</body>
</html>

Set window size and position before showing
Set window size and position before showing

Previously a new dev window that threw an error during bootstrap
would not be displayed.
