minor bugfix for browser use as per #10

This commit is contained in:
AJ ONeal 2017-01-30 16:34:11 -07:00
parent d3fce04a34
commit d87c3019fa
1 changed files with 1 additions and 1 deletions

View File

@ -210,6 +210,6 @@ pdns.unpack = function (ab) {
header.byteLength = total;
return header;
};
pdns.unpackRdata = require('./dns.rdata.parse.js').DNS_RDATA_PARSE;
pdns.unpackRdata = exports.DNS_RDATA_PARSE || require('./dns.rdata.parse.js').DNS_RDATA_PARSE;
}('undefined' !== typeof window ? window : exports));