From 84b8e0626e84f593dae77a879a1aa4a0b7573b0c Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Wed, 16 Aug 2017 11:45:26 -0500 Subject: [PATCH] fix(mode): use mode presets --- packages/core/src/global/ionic-global.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/global/ionic-global.ts b/packages/core/src/global/ionic-global.ts index 12fd99def4..26460e6bc1 100644 --- a/packages/core/src/global/ionic-global.ts +++ b/packages/core/src/global/ionic-global.ts @@ -15,4 +15,4 @@ Context.config = createConfigController( // get the mode via config settings and set it to // both Ionic and the Core global -Context.mode = Context.config.get('mode', 'md'); +Context.mode = Context.mode || Context.config.get('mode', 'md');