From 49c48e29b3f8d837cd309f528a3f1d25cf8769da Mon Sep 17 00:00:00 2001 From: Thomas Marstrander Date: Mon, 1 Apr 2019 14:42:53 +0200 Subject: [PATCH] JI-1059 Fix no options in request queue --- js/request-queue.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/request-queue.js b/js/request-queue.js index 8bd9651..fcf27d2 100644 --- a/js/request-queue.js +++ b/js/request-queue.js @@ -14,7 +14,7 @@ H5P.RequestQueue = (function ($, EventDispatcher) { EventDispatcher.call(this); this.processingQueue = false; - this.showToast = options.showToast; + this.showToast = options ? options.showToast : false; // Initialize listener for when requests are added to queue window.addEventListener('offline', this.updateOnlineStatus.bind(this));