fix max recent entries number in codepad

This commit is contained in:
lxsang 2021-03-24 11:09:43 +01:00
parent 738eb1f831
commit 5ca29f5103
4 changed files with 5 additions and 1 deletions

View File

@ -198,6 +198,7 @@ ar:
BUILDDIR=/tmp/antos-$(VERSION) make release
cd /tmp/antos-$(VERSION) && tar cvzf ../antos-$(VERSION).tar.gz .
mv /tmp/antos-$(VERSION).tar.gz release/
echo $(VERSION) > release/latest
release: main uglify

Binary file not shown.

1
release/latest Normal file
View File

@ -0,0 +1 @@
1.2.0

View File

@ -956,7 +956,9 @@ namespace OS {
return;
}
this.setting.recent.push(file);
this.setting.recent.slice(0, 10);
if(this.setting.recent.length > 10)
this.setting.recent = this.setting.recent.slice(0, 10);
}
/**