From bb125e2c7a5ffc679a454a5e3ea97d0057791857 Mon Sep 17 00:00:00 2001 From: k2s Date: Mon, 4 Jun 2018 00:22:25 +0200 Subject: [PATCH] Electron 2.0 removed atom-shell from process.versions removal commit: https://github.com/electron/electron/pull/11979 --- text.js | 1 + 1 file changed, 1 insertion(+) diff --git a/text.js b/text.js index b8370d6..019e119 100644 --- a/text.js +++ b/text.js @@ -262,6 +262,7 @@ define(['module'], function (module) { process.versions && !!process.versions.node && !process.versions['node-webkit'] && + !process.versions['electron'] && !process.versions['atom-shell'])) { //Using special require.nodeRequire, something added by r.js. fs = require.nodeRequire('fs');