mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-02 03:50:45 +08:00
removed any
This commit is contained in:
parent
8a3631170d
commit
0430c7f9c7
1 changed files with 6 additions and 6 deletions
|
@ -319,25 +319,25 @@ export async function screenshot(): Promise<void> {
|
|||
Notifications.add("Copied to clipboard", 1, 2);
|
||||
revertScreenshot();
|
||||
})
|
||||
.catch((e: any) => {
|
||||
.catch((e) => {
|
||||
Notifications.add(
|
||||
"Error saving image to clipboard: " + e.message,
|
||||
Misc.createErrorMessage(e, "Error saving image to clipboard"),
|
||||
-1
|
||||
);
|
||||
revertScreenshot();
|
||||
});
|
||||
}
|
||||
} catch (e: any) {
|
||||
} catch (e) {
|
||||
Notifications.add(
|
||||
"Error saving image to clipboard: " + e.message,
|
||||
Misc.createErrorMessage(e, "Error saving image to clipboard"),
|
||||
-1
|
||||
);
|
||||
revertScreenshot();
|
||||
}
|
||||
});
|
||||
});
|
||||
} catch (e: any) {
|
||||
Notifications.add("Error creating image: " + e.message, -1);
|
||||
} catch (e) {
|
||||
Notifications.add(Misc.createErrorMessage(e, "Error creating image"), -1);
|
||||
revertScreenshot();
|
||||
}
|
||||
setTimeout(() => {
|
||||
|
|
Loading…
Reference in a new issue