mirror of
https://github.com/khairul169/code-share.git
synced 2026-10-24 11:53:58 +07:00
feat: add caching to thumbnail creator
This commit is contained in:
@@ -28,6 +28,7 @@ export const screenshot = async (slug: string) => {
|
||||
|
||||
closeHandler = setTimeout(() => {
|
||||
browser?.close();
|
||||
browser = null;
|
||||
closeHandler = null;
|
||||
}, 60000);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user