Remove blob store and native module cache

This commit is contained in:
Antonio Scandurra
2017-02-28 17:20:49 +01:00
parent deb94f6f4a
commit e275570a4e
11 changed files with 5 additions and 476 deletions

View File

@@ -5,8 +5,6 @@
const Module = require('module')
const getWindowLoadSettings = require('../src/get-window-load-settings')
const entryPointDirPath = __dirname
let blobStore = null
let devMode = false
let useSnapshot = false
window.onload = function () {
@@ -21,7 +19,7 @@
process.resourcesPath = path.normalize(process.resourcesPath)
setupAtomHome()
devMode = getWindowLoadSettings().devMode || !getWindowLoadSettings().resourcePath.startsWith(process.resourcesPath + path.sep)
const devMode = getWindowLoadSettings().devMode || !getWindowLoadSettings().resourcePath.startsWith(process.resourcesPath + path.sep)
useSnapshot = !devMode && typeof snapshotResult !== 'undefined'
if (devMode) {
@@ -91,7 +89,7 @@
const initScriptPath = path.relative(entryPointDirPath, getWindowLoadSettings().windowInitializationScript)
const initialize = useSnapshot ? snapshotResult.customRequire(initScriptPath) : require(initScriptPath)
return initialize({blobStore: blobStore}).then(function () {
return initialize().then(function () {
electron.ipcRenderer.send('window-command', 'window:loaded')
})
}