lbry-desktop/lbrytv/stubs/fs.js
2019-11-11 13:27:29 -05:00

17 lines
357 B
JavaScript

function logWarning(method) {
if (NODE_ENV !== 'production') {
console.error(`Called fs.${method} on lbry.tv. This should be removed.`);
}
}
export default {
readFileSync: () => {
logWarning('readFileSync');
return undefined;
},
accessFileSync: () => {
logWarning('accessFileSync');
return undefined;
},
constants: {},
};