VideosListMarkupComponent
} from './peertube-custom-tags'
import { CustomMarkupComponent } from './peertube-custom-tags/shared'
+import { logger } from '@root-helpers/logger'
type AngularBuilderFunction = (el: HTMLElement) => ComponentRef<CustomMarkupComponent>
type HTMLBuilderFunction = (el: HTMLElement) => HTMLElement
// Insert as first child
e.insertBefore(element, e.firstChild)
} catch (err) {
- console.error('Cannot inject component %s.', selector, err)
+ logger.error(`Cannot inject component ${selector}`, err)
}
})
}
this.dynamicElementService.injectElement(e, component)
} catch (err) {
- console.error('Cannot inject component %s.', selector, err)
+ logger.error(`Cannot inject component ${selector}`, err)
}
})
}