mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
do not dynamically create link element
This commit is contained in:
@ -98,13 +98,7 @@ function setupDom(window, document, config, platform, clickBlock, featureDetect)
|
|||||||
|
|
||||||
// set the mode class name
|
// set the mode class name
|
||||||
// ios/md
|
// ios/md
|
||||||
let mode = config.get('mode');
|
bodyEle.classList.add(config.get('mode'));
|
||||||
bodyEle.classList.add(mode);
|
|
||||||
|
|
||||||
let linkEle = document.createElement('link');
|
|
||||||
linkEle.setAttribute('href', '../../../css/ionic.' + mode + '.css');
|
|
||||||
linkEle.setAttribute('rel', 'stylesheet');
|
|
||||||
document.head.appendChild(linkEle);
|
|
||||||
|
|
||||||
// touch devices should not use :hover CSS pseudo
|
// touch devices should not use :hover CSS pseudo
|
||||||
// enable :hover CSS when the "hoverCSS" setting is not false
|
// enable :hover CSS when the "hoverCSS" setting is not false
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<title>Ionic E2E</title>
|
<title>Ionic E2E</title>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
||||||
<!-- <link href="../../../css/ionic.css" rel="stylesheet"> -->
|
<link href="../../../css/ionic.css" rel="stylesheet">
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
if (!console.time) {
|
if (!console.time) {
|
||||||
|
Reference in New Issue
Block a user