mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-21 07:58:04 +03:00
8f2770d084
Previously this was done afterwards in index.html and task.coffee but should really be handled by the cache itself so any module require a different version of coffee-script are not reregistering a different require extension handler.
28 lines
658 B
HTML
28 lines
658 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').register();
|
|
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>
|