JI-1059 Fix no options in request queue

pull/61/head
Thomas Marstrander 2019-04-01 14:42:53 +02:00
parent a934d5b3ec
commit 49c48e29b3
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ H5P.RequestQueue = (function ($, EventDispatcher) {
EventDispatcher.call(this); EventDispatcher.call(this);
this.processingQueue = false; this.processingQueue = false;
this.showToast = options.showToast; this.showToast = options ? options.showToast : false;
// Initialize listener for when requests are added to queue // Initialize listener for when requests are added to queue
window.addEventListener('offline', this.updateOnlineStatus.bind(this)); window.addEventListener('offline', this.updateOnlineStatus.bind(this));