From 0a76923da0bd6af9c33be9457d652018f6411825 Mon Sep 17 00:00:00 2001 From: Josh Gillies Date: Thu, 12 May 2016 20:53:14 +1000 Subject: [PATCH] Fix issue where accessKey isn't passed into client config --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index be3cc06..688ca44 100644 --- a/index.js +++ b/index.js @@ -41,8 +41,8 @@ function Client (opts) { self.logs = new Logs(self); self.domains = new Domains(self); - if (config.accessKey) { - self.hook_private_key = config.accessKey; + if (opts.accessKey) { + self.hook_private_key = opts.accessKey; self.attemptAuth = true; } if (opts.hook_private_key) {