@ecodev/natural 70.2.0 → 70.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5551,9 +5551,14 @@ class NaturalIconDirective {
5551
5551
  registry[naturalRegistered] = true;
5552
5552
  for (const key of Object.keys(config)) {
5553
5553
  const svg = config[key].svg;
5554
- if (svg && this.isBrowser) {
5554
+ if (!svg)
5555
+ continue;
5556
+ if (this.isBrowser) {
5555
5557
  this.matIconRegistry.addSvgIcon(key, this.domSanitizer.bypassSecurityTrustResourceUrl(svg));
5556
5558
  }
5559
+ else {
5560
+ this.matIconRegistry.addSvgIconLiteral(key, this.domSanitizer.bypassSecurityTrustHtml('<svg></svg>'));
5561
+ }
5557
5562
  }
5558
5563
  }
5559
5564
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: NaturalIconDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });