mirror of
https://github.com/DustinBrett/daedalOS.git
synced 2025-12-06 00:20:05 +01:00
This commit is contained in:
parent
c6c2edc261
commit
555293076d
|
|
@ -57,11 +57,13 @@ const useDosCI = (
|
|||
const { createSnapshot } = useSnapshots();
|
||||
const closeBundle = useCallback(
|
||||
async (bundleUrl: string, screenshot?: Buffer, closeInstance = false) => {
|
||||
await createSnapshot(
|
||||
`${basename(bundleUrl)}${saveExtension}`,
|
||||
Buffer.from((await dosCI[bundleUrl].persist()) || []),
|
||||
screenshot
|
||||
);
|
||||
if (dosCI[bundleUrl]) {
|
||||
await createSnapshot(
|
||||
`${basename(bundleUrl)}${saveExtension}`,
|
||||
Buffer.from((await dosCI[bundleUrl].persist()) || []),
|
||||
screenshot
|
||||
);
|
||||
}
|
||||
|
||||
if (closeInstance) {
|
||||
try {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user