bitmessage-js/lib/worker.js

15 lines
360 B
JavaScript
Raw Normal View History

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