1
0
Fork 0
mirror of synced 2024-10-04 03:54:37 +13:00

Simplify notification

This commit is contained in:
Adria Navarro 2023-06-14 13:48:10 +01:00
parent d507eb487a
commit fbf9b69a6b

View file

@ -51,11 +51,7 @@
notifications.error("Error exporting the app.")
}
} catch (error) {
let message = "Error downloading the exported app"
if (error.message) {
message += `: ${error.message}`
}
notifications.error("Error downloading the exported app", message)
notifications.error(error.message ?? "Error downloading the exported app")
}
}
</script>