From b9b31cc647868e3e538cbf0cefc67c711781ca84 Mon Sep 17 00:00:00 2001 From: kaurjasleen240305 Date: Thu, 4 Jan 2024 18:34:09 +0530 Subject: [PATCH] console_error_removed Canvas_refresh_only_for_defined_activity setimeout done less in_do_smaller_also_done console_statements_removed console_error_removed --- js/activity.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/js/activity.js b/js/activity.js index 33222e946b..6e7dabf639 100644 --- a/js/activity.js +++ b/js/activity.js @@ -1237,7 +1237,9 @@ class Activity { this.setSmallerLargerStatus(); } - this.activity.refreshCanvas(); + if(typeof(this.activity)!="undefined"){ + this.activity.refreshCanvas(); + } document.getElementById("hideContents").click(); }; @@ -1265,7 +1267,9 @@ class Activity { } this.setSmallerLargerStatus(); - this.activity.refreshCanvas(); + if(typeof(this.activity)!="undefined"){ + this.activity.refreshCanvas(); + } document.getElementById("hideContents").click(); };