mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(electron): empty error message would appear after closing app
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@ startIpfs.onError = (error) => {
|
|||||||
// only show error once or it spams the user
|
// only show error once or it spams the user
|
||||||
const alreadyShownIpfsError = !!startIpfsError;
|
const alreadyShownIpfsError = !!startIpfsError;
|
||||||
startIpfsError = error;
|
startIpfsError = error;
|
||||||
if (!alreadyShownIpfsError) {
|
if (!alreadyShownIpfsError && error.message) {
|
||||||
dialog.showErrorBox('IPFS warning', error.message);
|
dialog.showErrorBox('IPFS warning', error.message);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user