Skip to content

Commit

Permalink
chore(): change usage of Build.isDev so that buble does not act out.
Browse files Browse the repository at this point in the history
  • Loading branch information
jthoms1 committed Apr 17, 2018
1 parent 43d7538 commit cccdb42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/components/nav/nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,11 @@ export class Nav implements NavOutlet {
@Prop() root: NavComponent|undefined;
@Watch('root')
rootChanged() {
const isDev = Build.isDev;
if (this.root) {
if (!this.useRouter) {
this.setRoot(this.root, this.rootParams);
} else if (Build.isDev) {
} else if (isDev) {
console.warn('<ion-nav> does not support a root attribute when using ion-router.');
}
}
Expand Down

0 comments on commit cccdb42

Please sign in to comment.