@fluxhub/fluxhub-lib 10.0.308 → 10.0.310

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.
@@ -1101,6 +1101,25 @@
1101
1101
  range.select();
1102
1102
  }
1103
1103
  };
1104
+ UtilityService.prototype.getBrowserName = function () {
1105
+ var agent = window.navigator.userAgent.toLowerCase();
1106
+ switch (true) {
1107
+ case agent.indexOf('edge') > -1:
1108
+ return 'edge';
1109
+ case agent.indexOf('opr') > -1 && !!window.opr:
1110
+ return 'opera';
1111
+ case agent.indexOf('chrome') > -1 && !!window.chrome:
1112
+ return 'chrome';
1113
+ case agent.indexOf('trident') > -1:
1114
+ return 'ie';
1115
+ case agent.indexOf('firefox') > -1:
1116
+ return 'firefox';
1117
+ case agent.indexOf('safari') > -1:
1118
+ return 'safari';
1119
+ default:
1120
+ return 'other';
1121
+ }
1122
+ };
1104
1123
  UtilityService.prototype.print_param = function (p) {
1105
1124
  console.log("Tipologie -> " + String(p.types.length));
1106
1125
  console.log("Valori -> " + String(p.values.length));
@@ -17166,7 +17185,6 @@
17166
17185
  };
17167
17186
  dati_aggiuntivi.prototype.back = function (edit_button) {
17168
17187
  var _this = this;
17169
- console.log('edit_button ', edit_button);
17170
17188
  if (!edit_button)
17171
17189
  this.m_router.navigate([this.app_info.modulo_swf]);
17172
17190
  else {