code-server/scripts/nbin-loader.js

10 lines
193 B
JavaScript
Raw Normal View History

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