帮助nonameShijian提的修复

录像菜单显示问题修复
This commit is contained in:
lieren2023 2023-10-31 00:05:52 +08:00 committed by GitHub
parent 4428b7cbf6
commit 41ce79e2e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -51009,7 +51009,10 @@
var node=ui.create.div('.menubutton.large','录像',start.firstChild,clickMode);
node.type='video';
lib.videos=[];
ui.create.videoNode=(video,before)=>lib.videos[before===true?'unshift':'push'](video);
ui.create.videoNode=(video,before)=>{
lib.videos.remove(video);
lib.videos[before===true?'unshift':'push'](video);
};
node._initLink=function(){
node.link=page;
var store=lib.db.transaction(['video'],'readwrite').objectStore('video');