app only set document domain if not window device