diff --git a/browser.js b/browser.js index d489415..669c4fc 100644 --- a/browser.js +++ b/browser.js @@ -3,6 +3,7 @@ var native = module.exports; native._canCheck = function(me) { + me._canCheck = {}; return me .request({ url: me._baseUrl + '/api/_acme_api_/' }) .then(function(resp) { diff --git a/native.js b/native.js index ead4fe4..88c90ef 100644 --- a/native.js +++ b/native.js @@ -5,6 +5,7 @@ var promisify = require('util').promisify; var resolveTxt = promisify(require('dns').resolveTxt); native._canCheck = function(me) { + me._canCheck = {}; me._canCheck['http-01'] = true; me._canCheck['dns-01'] = true; return Promise.resolve();