const path = require('path'); const CurrentPath = path.dirname(__filename) const hasNapcatParam = process.argv.includes('--no-sandbox'); if (hasNapcatParam) { (async () => { await import("file://" + path.join(CurrentPath, './napcat/napcat.mjs')); })(); } else { require('./launcher.node').load('external_index', module); }