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...',