diff --git a/src/main.js b/src/main.js index 9c77626d..cb4ea27c 100644 --- a/src/main.js +++ b/src/main.js @@ -343,13 +343,10 @@ Peaks.init = function(opts, callback) { let err = instance._setOptions(opts); - if (err) { - callback(err); - return; + if (!err) { + err = checkContainerElements(instance.options); } - err = checkContainerElements(instance.options); - if (err) { callback(err); return;