tnx-shared 5.3.175 → 5.3.176

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.
@@ -4780,6 +4780,16 @@
4780
4780
  });
4781
4781
  return result;
4782
4782
  };
4783
+ CommonService.prototype.embedScript = function (scriptConfig) {
4784
+ var scriptElement = document.createElement('script');
4785
+ scriptElement.src = scriptConfig.src;
4786
+ for (var prop in scriptConfig) {
4787
+ if (scriptConfig.hasOwnProperty(prop) && prop !== 'src') {
4788
+ scriptElement.setAttribute(prop, scriptConfig[prop]);
4789
+ }
4790
+ }
4791
+ document.body.appendChild(scriptElement);
4792
+ };
4783
4793
  return CommonService;
4784
4794
  }());
4785
4795
  CommonService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CommonService_Factory() { return new CommonService(i0__namespace.ɵɵinject(ModuleConfigService)); }, token: CommonService, providedIn: "root" });