Use LiveDevelopment.status instead of Inspector.connected()