more fixes

This commit is contained in:
Olivier Gagnon
2021-11-26 18:54:06 -05:00
parent f17870926b
commit b941753e1b
3 changed files with 8 additions and 8 deletions

View File

@@ -5,7 +5,7 @@ export const recentScripts: RecentScript[] = [];
export function AddRecentScript(workerScript: WorkerScript): void {
if (recentScripts.find((r) => r.pid === workerScript.pid)) return;
recentScripts.push({
recentScripts.unshift({
filename: workerScript.name,
args: workerScript.args,
pid: workerScript.pid,