preload.js: Load spellcheck last; it fails with /tmp noexec (#1734)

This commit is contained in:
Scott Nonnenberg 2017-11-08 15:52:42 -08:00 committed by GitHub
parent 259862ec2e
commit d953a61d39
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,7 +38,6 @@
// We pull these dependencies in now, from here, because they have Node.js dependencies
require('./js/logging');
require('./js/spell_check');
require('./js/backup');
window.nodeSetImmediate = setImmediate;
@ -53,4 +52,8 @@
window.nodeFetch = require('node-fetch');
window.httpsAgent = require('https').Agent;
window.nodeBuffer = Buffer;
// We pull this in last, because the native module involved appears to be sensitive to
// /tmp mounted as noexec on Linux.
require('./js/spell_check');
})();