fix if. fire deviceready if not mobile