Load module cache in index.js

This commit is contained in:
Kevin Sawicki
2014-10-08 10:00:13 -07:00
committed by Kevin Sawicki
parent 87d2026e63
commit 0a297d7642
2 changed files with 5 additions and 4 deletions

View File

@@ -1,10 +1,6 @@
# Like sands through the hourglass, so are the days of our lives.
startTime = Date.now()
ModuleCache = require('./module-cache')
ModuleCache.add(JSON.parse(decodeURIComponent(location.search.substr(14))).resourcePath)
ModuleCache.register()
require './window'
Atom = require './atom'

View File

@@ -17,6 +17,11 @@ window.onload = function() {
require('vm-compatibility-layer');
require('coffee-script').register();
require(path.resolve(__dirname, '..', 'src', 'coffee-cache')).register();
ModuleCache = require('./module-cache');
ModuleCache.add(loadSettings.resourcePath);
ModuleCache.register();
require(loadSettings.bootstrapScript);
ipc.sendChannel('window-command', 'window:loaded')
}