mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 15:51:16 +08:00
feat(platform): add ability to override platform detection methods (#23915)
resolves #19737
This commit is contained in:
@ -21,9 +21,6 @@ export const initialize = (userConfig: IonicConfig = {}) => {
|
||||
Context.config = config;
|
||||
const Ionic = (win as any).Ionic = (win as any).Ionic || {};
|
||||
|
||||
// Setup platforms
|
||||
setupPlatforms(win);
|
||||
|
||||
const platformHelpers: any = {};
|
||||
if (userConfig._ael) {
|
||||
platformHelpers.ael = userConfig._ael;
|
||||
@ -51,6 +48,9 @@ export const initialize = (userConfig: IonicConfig = {}) => {
|
||||
saveConfig(win, configObj);
|
||||
}
|
||||
|
||||
// Setup platforms
|
||||
setupPlatforms(win);
|
||||
|
||||
// first see if the mode was set as an attribute on <html>
|
||||
// which could have been set by the user, or by pre-rendering
|
||||
// otherwise get the mode via config settings, and fallback to md
|
||||
|
||||
Reference in New Issue
Block a user