mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore(): change usage of Build.isDev so that buble does not act out.
This commit is contained in:
@@ -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.');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user