mirror of
https://github.com/atom/atom.git
synced 2026-01-22 13:28:01 -05:00
Fix bootstrap in renderer.
This commit is contained in:
@@ -5,10 +5,11 @@
|
||||
|
||||
<script>
|
||||
window.onload = function() {
|
||||
var path = require('path');
|
||||
var currentWindow = require('remote').getCurrentWindow();
|
||||
try {
|
||||
require('coffee-script');
|
||||
require('../src/coffee-cache').register();
|
||||
require(path.resolve(__dirname, '..', 'src', 'coffee-cache')).register();
|
||||
require(currentWindow.loadSettings.bootstrapScript);
|
||||
currentWindow.emit('window:loaded');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user