From 65887f081d4522b2db9a40398c4b19c192414ad9 Mon Sep 17 00:00:00 2001
From: lehtint6 <teemu.t.lehtinen@aalto.fi>
Date: Tue, 2 Mar 2021 12:29:10 +0200
Subject: [PATCH] Improve console command instruction

---
 content.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/content.js b/content.js
index c666bcb..48d7dc1 100644
--- a/content.js
+++ b/content.js
@@ -102,9 +102,10 @@ let Content = {
 
   console_command: {
     instructions: "This time the area on the left does not have any visible content. However, this exercise defines a JavaScript function that can grant you points. Your task is to use the browser console to call the function like this: <code>giveMePoints();</code>",
-    html: "<div id=\"events\"><p>First, <button>click here to focus</button> on suitable JavaScript context. Then use the browser console.</p></div>",
+    html: "<div id=\"events\"><p>First, make sure that your browser <em>console</em> is open and it has the <em>top</em> JavaScript context selected (dropdown selection in Chrome). Then, type in the command given in instruction.</p></div>",
     script: function giveMePoints() {
       window.postMessage('grade');
+      return 'Granting points my lord!';
     },
     selector: "$window",
     events: "message",
-- 
GitLab