From 74e1216cde853ad4f23c6682c62a2cb933cf50d2 Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Fri, 4 Dec 2015 15:23:43 -0600 Subject: [PATCH] do not dynamically create link element --- ionic/config/bootstrap.ts | 8 +------- scripts/e2e/e2e.template.html | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/ionic/config/bootstrap.ts b/ionic/config/bootstrap.ts index bb4c691bfe..e575f2ddc9 100644 --- a/ionic/config/bootstrap.ts +++ b/ionic/config/bootstrap.ts @@ -98,13 +98,7 @@ function setupDom(window, document, config, platform, clickBlock, featureDetect) // set the mode class name // ios/md - let mode = 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); + bodyEle.classList.add(config.get('mode')); // touch devices should not use :hover CSS pseudo // enable :hover CSS when the "hoverCSS" setting is not false diff --git a/scripts/e2e/e2e.template.html b/scripts/e2e/e2e.template.html index dedac953f5..01cd01b8ab 100644 --- a/scripts/e2e/e2e.template.html +++ b/scripts/e2e/e2e.template.html @@ -4,7 +4,7 @@ Ionic E2E - +