do not dynamically create link element

This commit is contained in:
Adam Bradley
2015-12-04 15:23:43 -06:00
parent 5f221e273b
commit 74e1216cde
2 changed files with 2 additions and 8 deletions

View File

@ -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

View File

@ -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) {