Skip to content

Commit

Permalink
Small JS fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamsorcerer committed Sep 12, 2023
1 parent 1bfafd1 commit 312d50b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions web/js/agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class Agent{
$('.modal').modal({dismissible:false,
onOpenStart: function () {
that.currentDevice = data['device'];
this.passkey= data['passkey'];
that.passkey = data['passkey'];
$('#modalPopupHeader')[0].innerHTML = "Pair to host?";
$('#modalPopupTextBefore')[0].innerHTML = "Confirm you see the same passkey on host:";
$('#modalPopupLargeText')[0].innerHTML = data['passkey'];
Expand Down Expand Up @@ -84,4 +84,4 @@ class Agent{
});

}
}
}
4 changes: 2 additions & 2 deletions web/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class Main{
},
error: function (jqXHR, textStatus, errorThrown){
M.toast({html: "Failed to load connected devices list. "+errorThrown, classes:"red"});
that.updateHIDDevices();
setTimeout(that.updateHIDDevices, 1000);
}
});
}
Expand Down Expand Up @@ -282,7 +282,7 @@ class Main{
},
error: function (jqXHR, textStatus, errorThrown){
M.toast({html: "Failed to load update bluetooth devices list. "+errorThrown, classes:"red"});
that.updateListOfBluetoothDevices();
setTimeout(that.updateListOfBluetoothDevices, 1000);
}
});
}
Expand Down

0 comments on commit 312d50b

Please sign in to comment.