mirror of https://github.com/OpenVidu/openvidu.git
ov-components: Add check for existing Material Icons link in VideoconferenceComponent
parent
fd8be9f23f
commit
2de2920acf
|
@ -413,11 +413,14 @@ export class VideoconferenceComponent implements OnDestroy, AfterViewInit {
|
|||
* @internal
|
||||
*/
|
||||
ngAfterViewInit() {
|
||||
//Add material icons to the page
|
||||
//Add material icons to the page if not already present
|
||||
const existingLink = document.querySelector('link[href*="Material+Symbols+Outlined"]');
|
||||
if (!existingLink) {
|
||||
const link = document.createElement('link');
|
||||
link.href = 'https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined&icon_names=background_replace,keep_off';
|
||||
link.rel = 'stylesheet';
|
||||
document.head.appendChild(link);
|
||||
}
|
||||
if (this.externalToolbar) {
|
||||
this.log.d('Setting EXTERNAL TOOLBAR');
|
||||
this.openviduAngularToolbarTemplate = this.externalToolbar.template;
|
||||
|
|
Loading…
Reference in New Issue