mirror of
https://github.com/ducbao414/win32.run.git
synced 2025-12-16 09:12:48 +09:00
fix: worker not being called to work on sorting
This commit is contained in:
@@ -51,7 +51,7 @@ onmessage = async ({data}) => {
|
|||||||
return elm[option_key];
|
return elm[option_key];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let sorted_items = sort(items).by([predicate]);
|
let sorted_items = sort(items).by([predicate]);
|
||||||
|
|
||||||
postMessage({id, sorted_items, type: 'sorted'})
|
postMessage({id, sorted_items, type: 'sorted'})
|
||||||
|
|||||||
@@ -53,6 +53,8 @@
|
|||||||
last_sort_tx_hash = hash;
|
last_sort_tx_hash = hash;
|
||||||
worker.postMessage({type: 'sort', hash, ...hash_object});
|
worker.postMessage({type: 'sort', hash, ...hash_object});
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
last_sort_tx_hash = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user