1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-16 00:14:34 +02:00

Desktop: Attach log to crash dump when the application crashes

This commit is contained in:
Laurent Cozic
2024-04-26 16:07:16 +01:00
parent 74bc9b36aa
commit c5dfa4c055
6 changed files with 81 additions and 48 deletions

View File

@ -1,4 +1,7 @@
// eslint-disable-next-line import/prefer-default-export
export const KB = 1024;
export const MB = KB * KB;
export const GB = KB * MB;
export const bytesToHuman = (bytes: number) => {
const units = ['Bytes', 'KB', 'MB', 'GB'];
let unitIndex = 0;