fix js error if IDE device not present