From ef5c7525bf588e229ebf304556ca1c3c1a64d027 Mon Sep 17 00:00:00 2001 From: Oliver Foster Date: Tue, 17 May 2022 11:24:34 +0100 Subject: [PATCH] fixes #10 wrong model for course config --- js/adapt-homeButton.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/adapt-homeButton.js b/js/adapt-homeButton.js index 348920c..ffa1307 100644 --- a/js/adapt-homeButton.js +++ b/js/adapt-homeButton.js @@ -26,7 +26,7 @@ class HomeButton extends Backbone.Controller { } get courseConfig() { - return location._currentModel?.get('_homeButton'); + return Adapt.course?.get('_homeButton'); } onRouterEvent() {