Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49083

ionic.Platform.platform() return incorrect in Chrome

$
0
0

@nerdlandiamark wrote:

ionic.Platform.platform(), when run in ionic.Platform.ready(), under Chrome using ionic serve, used to return "win32"; now returns "ios"

  1. ionic --version = 1.7.14
  2. create a sidemenu project (ionic start sidemenu), in the controllers.js add:

ionic.Platform.ready(function() {
console.log(ionic.Platform.platform()); // ios in Chrome "ionic serve"
});

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49083

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>