mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-25 20:32:46 +00:00
Fixed missing search on pages other than index
This commit is contained in:
parent
7c5c638737
commit
23dcd41d0f
|
|
@ -620,7 +620,7 @@ function renderLoop() {
|
|||
if (!canvas || !onscreen || !shaderCtx.gl)
|
||||
return;
|
||||
var search = document.getElementById('search');
|
||||
if (search.value !== lastRecordedSearch) {
|
||||
if (search && search.value !== lastRecordedSearch) {
|
||||
lastRecordedSearch = search.value;
|
||||
setTimeout(function () {
|
||||
free(staticPathSet);
|
||||
|
|
|
|||
|
|
@ -650,8 +650,8 @@ function renderLoop() {
|
|||
if(renderStopped) return;
|
||||
if(!canvas || !onscreen || !shaderCtx.gl) return;
|
||||
|
||||
const search = document.getElementById('search')! as HTMLInputElement;
|
||||
if(search.value !== lastRecordedSearch) {
|
||||
const search = document.getElementById('search') as HTMLInputElement;
|
||||
if(search && search.value !== lastRecordedSearch) {
|
||||
lastRecordedSearch = search.value;
|
||||
setTimeout(() => {
|
||||
free(staticPathSet);
|
||||
|
|
|
|||
Loading…
Reference in New Issue