bitmessage-js/lib/worker.js
2015-11-13 22:04:56 +03:00

15 lines
360 B
JavaScript

/**
* Worker routines for Node platform. This module tries to load native
* addon and makes it available for Node.
*/
"use strict";
try {
module.exports = require("../build/Release/worker");
} catch(e) {
// Do nothing for a moment. Everything will work except the functions
// that use worker routines.
// TODO(Kagami) Provide pure JS fallback.
}