Currently there is no way to know the devtools's state in brightray, so we have to record the state manually, fix this after patching brightray.