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;