JI-1059 Fix no options in request queue
parent
a934d5b3ec
commit
49c48e29b3
|
@ -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));
|
||||||
|
|
Loading…
Reference in New Issue