mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
type for style in remote env
This commit is contained in:
parent
1ac8f9634f
commit
334c788263
@ -35,6 +35,7 @@ function getExistingLinkElementByKey(key: string) {
|
|||||||
function createLinkElementWithKey(key: string) {
|
function createLinkElementWithKey(key: string) {
|
||||||
const linkEl = document.createElement('link');
|
const linkEl = document.createElement('link');
|
||||||
linkEl.setAttribute('rel', 'stylesheet');
|
linkEl.setAttribute('rel', 'stylesheet');
|
||||||
|
linkEl.setAttribute('type', 'text/css');
|
||||||
linkEl.classList.add(getClassNameForKey(key));
|
linkEl.classList.add(getClassNameForKey(key));
|
||||||
document.head.appendChild(linkEl);
|
document.head.appendChild(linkEl);
|
||||||
return linkEl;
|
return linkEl;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user