bitmessage-js/lib/worker.js

13 lines
346 B
JavaScript
Raw Normal View History

2015-01-09 22:36:42 +01:00
/**
* Worker routines for Node platform. This module tries to load native
* addon and makes it available for Node.
*/
try {
module.exports = require("../build/Release/worker");
} catch(e) {
// Do nothing for a moment. Everything will work except the functions
// that uses worker routines.
// TODO(Kagami) Provide pure JS fallback.
}