wrap workers in a function scope and add a validateMessage method to HK's Env
This commit is contained in:
@@ -76,6 +76,8 @@ module.exports.create = function (config, cb) {
|
||||
domain: config.domain
|
||||
};
|
||||
|
||||
HK.initializeValidationWorkers(Env);
|
||||
|
||||
(function () {
|
||||
var pes = config.premiumUploadSize;
|
||||
if (!isNaN(pes) && pes >= Env.maxUploadSize) {
|
||||
|
||||
Reference in New Issue
Block a user