From 334c78826381eebcd0aa6a2b131e78044d9396f5 Mon Sep 17 00:00:00 2001 From: Eugenio Romano Date: Thu, 5 Oct 2017 17:30:29 +0100 Subject: [PATCH] type for style in remote env --- .../app/components/theme-picker/style-manager/style-manager.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/demo-shell-ng2/app/components/theme-picker/style-manager/style-manager.ts b/demo-shell-ng2/app/components/theme-picker/style-manager/style-manager.ts index ccc36294b0..229366b7ba 100644 --- a/demo-shell-ng2/app/components/theme-picker/style-manager/style-manager.ts +++ b/demo-shell-ng2/app/components/theme-picker/style-manager/style-manager.ts @@ -35,6 +35,7 @@ function getExistingLinkElementByKey(key: string) { function createLinkElementWithKey(key: string) { const linkEl = document.createElement('link'); linkEl.setAttribute('rel', 'stylesheet'); + linkEl.setAttribute('type', 'text/css'); linkEl.classList.add(getClassNameForKey(key)); document.head.appendChild(linkEl); return linkEl;