fix alert() call

This commit is contained in:
tophf 2021-07-18 07:20:47 +03:00 committed by GitHub
parent a295d079b1
commit 9dea6c67b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,7 +66,8 @@ msg.onExtension(request => {
updateUI(newStyle); updateUI(newStyle);
} }
if (request.reason === 'publishing-failed') { if (request.reason === 'publishing-failed') {
messageBoxProxy.alert(`UserStyles.world returned error: ${newStyle._usw.publishingError}`); messageBoxProxy.alert(newStyle._usw.publishingError, 'pre',
'UserStyles.world: ' + t('genericError'));
} }
}); });
} }