fix the way how to popup warning window from frontendpy
frontendpy & xdjs: solve the problem that when peerids are not ready when xdjs loaded, DeviceObserver cannot be bound.