Fix js error when viewing on desktop.