diff --git a/lib/Jaws.js b/lib/Jaws.js index 1784bf7b9..2a7e6e2b9 100644 --- a/lib/Jaws.js +++ b/lib/Jaws.js @@ -198,12 +198,12 @@ class Jaws { return Promise.coroutine(_this._queue[0])() .then(function() { - _this._queue.splice(0, 1); + _this._queue.splice(0, 1); //todo: change to .shift() if (_this._queue.length) return _this._executeQueue(); }) .catch(function(error) { console.log('JAWS Plugin Error: ', error, error.stack); - _this._queue.splice(0, 1); + _this._queue.splice(0, 1); //todo: change to .shift() // Crash, or keep going? if (_this._queue.length) return _this._executeQueue(); });