I need to handle browser specific error "Message manager disconnected"
. The error seems to be general type “Error” so the only way (I can think of) to distinguish it is to check if:
if (err.message === 'Message manager disconnected')
But is this a good idea? Is it likely that the error message would change in the future or that it’s different on different build (translated maybe?).