diff --git a/lib/api/screenboard.js b/lib/api/screenboard.js index 6096a66..a211010 100644 --- a/lib/api/screenboard.js +++ b/lib/api/screenboard.js @@ -58,7 +58,7 @@ var util = require("util"); * ``` */ function create(boardTitle, widgets, options, callback){ - if(arguments.length < 5 && typeof arguments[3] === "function"){ + if(arguments.length < 4 && typeof arguments[2] === "function"){ callback = options; options = {}; }