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');