Skip to content

Commit

Permalink
make JS Chrome friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
gfldex committed Jul 25, 2016
1 parent 0d63da3 commit 7fd6934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ document.addEventListener("keyup", function(evt){
function setup_debug_mode(){
$('footer').children(':first').append('<span id="debug"> [Debug: '+ (window.sessionStorage.getItem("debug")?"on":"off") +']</span>');
$('#debug').click(function(){
if ( $(this).text().contains('off') ) {
if ( $(this).text().includes('off') ) {
window.sessionStorage.setItem("debug", "on");
$(this).html('[Debug: on]');
}else{
Expand Down

0 comments on commit 7fd6934

Please sign in to comment.