Skip to content

Commit 7fd6934

Browse files
committed
make JS Chrome friendly
1 parent 0d63da3 commit 7fd6934

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

html/js/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ document.addEventListener("keyup", function(evt){
7373
function setup_debug_mode(){
7474
$('footer').children(':first').append('<span id="debug"> [Debug: '+ (window.sessionStorage.getItem("debug")?"on":"off") +']</span>');
7575
$('#debug').click(function(){
76-
if ( $(this).text().contains('off') ) {
76+
if ( $(this).text().includes('off') ) {
7777
window.sessionStorage.setItem("debug", "on");
7878
$(this).html('[Debug: on]');
7979
}else{

0 commit comments

Comments
 (0)