Antwort #112 am: 10. Juli 2020, 15:14:32
Ja klar.
Bei unserem Fix (Karl1 und meine Wenigkeit) ging es doch um
Unhandled promise rejection TypeError: Das Objekt unterstützt die Eigenschaft oder Methode "append" nichtund nicht um
.from() .
Um das Problem zu lösen wird es wohl komplizierter.
Eine Lösung wäre
dieses Polyfill vom MozillaDeveloperNetwork (hat einen Fehler, deshalb besser von
Stackoverflow hier).
Compressed:
Array.from||(Array.from=function(){function h(r){return"function"==typeof r||"[object Function]"===t.call(r)}function l(r){var t,n=(t=Number(r),isNaN(t)?0:0!==t&&isFinite(t)?(0<t?1:-1)*Math.floor(Math.abs(t)):t);return Math.min(Math.max(n,0),e)}var t=Object.prototype.toString,e=Math.pow(2,53)-1;return function(r,t,n){var e=Object(r);if(null==r)throw new TypeError("Array.from requires an array-like object - not null or undefined");var o,a=1<arguments.length?t:void 0;if(void 0!==a){if(!h(a))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(o=n)}for(var i,u=l(e.length),f=h(this)?Object(new this(u)):new Array(u),c=0;c<u;)i=e[c],f[c]=a?void 0===o?a(i,c):a.call(o,i,c):i,c+=1;return f.length=u,f}}());
*EDIT* not tested *END_EDIT*
IE sucks and always sucked...
Gruß,
noRiddle