mirror of
https://github.com/lxsang/antos-frontend.git
synced 2025-07-17 22:39:47 +02:00
fix max recent entries number in codepad
This commit is contained in:
@ -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);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user