Fix display help links

This commit is contained in:
Cohee1207
2023-08-07 22:21:10 +03:00
parent 32e5566a37
commit c124fc589f
2 changed files with 9 additions and 5 deletions

View File

@ -423,7 +423,11 @@ function helpCommandCallback(_, type) {
}
}
window['displayHelp'] = (page) => helpCommandCallback(null, page);
$(document).on('click', '[data-displayHelp]', function (e) {
e.preventDefault();
const page = String($(this).data('displayhelp'));
helpCommandCallback(null, page);
});
function setBackgroundCallback(_, bg) {
if (!bg) {