|
|
@ -13,7 +13,7 @@ export class LazyLoadService { |
|
|
type: 'script' | 'style', |
|
|
type: 'script' | 'style', |
|
|
content: string = '', |
|
|
content: string = '', |
|
|
targetQuery: string = 'body', |
|
|
targetQuery: string = 'body', |
|
|
position: InsertPosition = 'afterend', |
|
|
position: InsertPosition = 'beforeend', |
|
|
): Observable<void> { |
|
|
): Observable<void> { |
|
|
if (!urlOrUrls && !content) { |
|
|
if (!urlOrUrls && !content) { |
|
|
return throwError('Should pass url or content'); |
|
|
return throwError('Should pass url or content'); |
|
|
|