1
0
mirror of https://git.tuxpa.in/a/code-server.git synced 2024-12-28 05:05:25 +00:00
code-server-2/scripts/nbin-loader.js

10 lines
181 B
JavaScript
Raw Normal View History

2019-07-05 16:54:04 +00:00
if (!global.NBIN_LOADED) {
try {
const nbin = require("nbin");
nbin.shimNativeFs("{{ROOT_PATH}}");
global.NBIN_LOADED = true;
} catch (error) {
2019-07-10 23:10:39 +00:00
// Not in the binary.
2019-07-05 16:54:04 +00:00
}
}