mirror of
https://github.com/bakustarver/rpgmakermlinux-cicpoffs.git
synced 2025-04-29 19:44:52 +02:00
11 lines
353 B
JavaScript
11 lines
353 B
JavaScript
exports.require = function () {
|
|
if (typeof process === "object" && process.versions && process.versions["electron"]) {
|
|
try {
|
|
const originalFs = require("original-fs");
|
|
if (Object.keys(originalFs).length > 0) {
|
|
return originalFs;
|
|
}
|
|
} catch (e) {}
|
|
}
|
|
return require("fs");
|
|
};
|