type for style in remote env

This commit is contained in:
Eugenio Romano 2017-10-05 17:30:29 +01:00
parent 1ac8f9634f
commit 334c788263

View File

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