Fix bootstrap in renderer.

This commit is contained in:
Cheng Zhao
2014-01-06 16:53:43 +08:00
parent 28ec1f3e2d
commit c287be1725

View File

@@ -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');
}