pulsar/static/index.html
Kevin Sawicki bc76b70552 Add SHA-1 based CoffeeScript compile cache
This restores the require cache that was used pre-node integration
2013-09-09 18:56:15 +01:00

30 lines
716 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('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>