MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / getMode

Function getMode

core/src/utils/config.ts:266–277  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

264};
265
266export const getMode = (): Mode => {
267 const win = window as any;
268 const config = win?.Ionic?.config;
269 if (config) {
270 if (config.mode) {
271 return config.mode;
272 } else {
273 return config.get('mode');
274 }
275 }
276 return 'md';
277};
278
279export const ENABLE_HTML_CONTENT_DEFAULT = false;

Callers 1

getIonModeFunction · 0.90

Calls 1

getMethod · 0.65

Tested by

no test coverage detected