lbry-desktop/web/stubs/fs.js

18 lines
369 B
JavaScript
Raw Normal View History

2019-11-07 20:39:22 +01:00
function logWarning(method) {
if (process.env.NODE_ENV !== 'production') {
2019-11-07 20:39:22 +01:00
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: {},
};