From 00ac6cf1432a4518ab593e0307665aabf5bf2c3a Mon Sep 17 00:00:00 2001 From: Whitie Date: Sat, 21 Jan 2023 16:25:19 +0100 Subject: [PATCH] Fixed TypeError in JS. --- celery_progress/static/celery_progress/celery_progress.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/celery_progress/static/celery_progress/celery_progress.js b/celery_progress/static/celery_progress/celery_progress.js index 0d957db..7c659d5 100644 --- a/celery_progress/static/celery_progress/celery_progress.js +++ b/celery_progress/static/celery_progress/celery_progress.js @@ -22,7 +22,7 @@ class CeleryProgressBar { this.onHttpError = options.onHttpError || this.onError; this.pollInterval = options.pollInterval || 500; // Other options - this.barColors = Object.assign({}, this.getBarColorsDefault(), options.barColors); + this.barColors = Object.assign({}, this.constructor.getBarColorsDefault(), options.barColors); let defaultMessages = { waiting: 'Waiting for task to start...',