mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2025-01-09 00:30:14 +03:00
ee388b2600
Previously a new dev window that threw an error during bootstrap would not be displayed.
32 lines
796 B
HTML
32 lines
796 B
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>
|