Skip to content

Commit

Permalink
Closes #41 by checking that the console exists
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-learningpool committed Aug 26, 2014
1 parent 93de84f commit 58d4ed0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions required/offline_API_wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
},
Expand Down

1 comment on commit 58d4ed0

@kineogavin
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Please sign in to comment.