sportlight only focus on searchbar when on desktop
All checks were successful
gitea-sync/antos/pipeline/head This commit looks good

This commit is contained in:
DanyLE 2023-01-07 11:28:44 +01:00
parent 0374af9613
commit be78fab8ae

View File

@ -382,7 +382,11 @@ namespace OS {
this.calibrate();
$(document).on("click", this._cb);
(this.refs.search as HTMLInputElement).value = "";
$(this.refs.search).focus();
if(!OS.mobile)
{
$(this.refs.search).focus();
}
} else {
$(this.refs.overlay).hide();
$(document).off("click", this._cb);