coctohug-web
Version:
- Nice localization with support of dozens of languages: [English](https://github.com/raingggg/coctohug/blob/main/readme_en.md), [العربية](https://github.com/raingggg/coctohug/blob/main/readme_ar.md), [Bulgarian](https://github.com/raingggg/coctohug/blob/
21 lines (19 loc) • 829 B
JavaScript
const { isWebControllerMode } = require('../utils/chiaConfig');
const isWebController = isWebControllerMode();
const emptyObject = {};
const { updateWallet } = isWebController ? emptyObject : require('./wallets');
const { updateFarm } = isWebController ? emptyObject : require('./farms');
const { updateConnection } = isWebController ? emptyObject : require('./connections');
const { updateKey } = isWebController ? emptyObject : require('./keys');
const { updateBlockchain } = isWebController ? emptyObject : require('./blockchains');
const { updateHand } = isWebController ? emptyObject : require('./hands');
const { emptyWorkerLogs } = isWebController ? emptyObject : require('./logs');
module.exports = {
updateWallet,
updateFarm,
updateConnection,
updateKey,
updateBlockchain,
updateHand,
emptyWorkerLogs,
};