From 58d4ed0e7cfc953addf0a7693e0dae3d611efea8 Mon Sep 17 00:00:00 2001 From: brian-learningpool Date: Tue, 26 Aug 2014 09:12:44 +0100 Subject: [PATCH] Closes #41 by checking that the console exists --- required/offline_API_wrapper.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/required/offline_API_wrapper.js b/required/offline_API_wrapper.js index 5141edf5..99f4b744 100644 --- a/required/offline_API_wrapper.js +++ b/required/offline_API_wrapper.js @@ -9,11 +9,11 @@ var API = { return "true"; }, LMSGetValue: function(key) { - console.log('LMSGetValue("' + key + '") - ' + this.data[key]); + window.console && console.log('LMSGetValue("' + key + '") - ' + this.data[key]); return this.data[key]; }, LMSSetValue: function(key, value) { - console.log('LMSSetValue("' + key + '") - ' + value); + window.console && console.log('LMSSetValue("' + key + '") - ' + value); this.data[key] = value; return "true"; },