mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
dynamically add link element for testing
This commit is contained in:
@ -98,7 +98,13 @@ function setupDom(window, document, config, platform, clickBlock, featureDetect)
|
||||
|
||||
// set the mode class name
|
||||
// ios/md
|
||||
bodyEle.classList.add(config.get('mode'));
|
||||
let mode = config.get('mode');
|
||||
bodyEle.classList.add(mode);
|
||||
|
||||
let linkEle = document.createElement('link');
|
||||
linkEle.setAttribute('href', '../../../css/ionic.' + mode + '.css');
|
||||
linkEle.setAttribute('ref', 'stylesheet');
|
||||
document.head.appendChild(linkEle);
|
||||
|
||||
// touch devices should not use :hover CSS pseudo
|
||||
// enable :hover CSS when the "hoverCSS" setting is not false
|
||||
|
Reference in New Issue
Block a user