mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 07:41:51 +08:00
@ -1,6 +1,6 @@
|
||||
import 'ionicons';
|
||||
|
||||
import { configFromURL } from '../utils/config';
|
||||
import { configFromSession, configFromURL, saveConfig } from '../utils/config';
|
||||
import { isIOS } from '../utils/platform';
|
||||
|
||||
import { Config } from './config';
|
||||
@ -16,10 +16,15 @@ Object.defineProperty(Ionic, 'queue', {
|
||||
|
||||
// create the Ionic.config from raw config object (if it exists)
|
||||
// and convert Ionic.config into a ConfigApi that has a get() fn
|
||||
const config = Ionic['config'] = Context['config'] = new Config({
|
||||
const configObj = {
|
||||
...Ionic['config'],
|
||||
...configFromSession(),
|
||||
...configFromURL()
|
||||
});
|
||||
};
|
||||
const config = Ionic['config'] = Context['config'] = new Config(configObj);
|
||||
if (config.getBoolean('_persist', false)) {
|
||||
saveConfig(configObj);
|
||||
}
|
||||
|
||||
// first see if the mode was set as an attribute on <html>
|
||||
// which could have been set by the user, or by prerendering
|
||||
|
||||
Reference in New Issue
Block a user