Files
atom/static/index.html
Kevin Sawicki e03544bab6 Hide body when unloading
This prevents a weird UI flicker when refreshing with the settings
view open.
2013-08-29 15:23:26 -07:00

30 lines
754 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').setCacheDir('/tmp/atom-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>