bitmessage-js/lib/worker.js

15 lines
360 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.
*/
2015-11-13 20:04:56 +01:00
"use strict";
2015-01-09 22:36:42 +01:00
try {
module.exports = require("../build/Release/worker");
} catch(e) {
// Do nothing for a moment. Everything will work except the functions
2015-11-13 20:04:56 +01:00
// that use worker routines.
2015-01-09 22:36:42 +01:00
// TODO(Kagami) Provide pure JS fallback.
}