Fix old browsers crashing because of missing finally
polyfill in web UI (#13115)
Fix #13015
This commit is contained in:
parent
7584342d83
commit
1314bba68a
4 changed files with 33 additions and 2 deletions
|
@ -6,6 +6,7 @@ import assign from 'object-assign';
|
|||
import values from 'object.values';
|
||||
import isNaN from 'is-nan';
|
||||
import { decode as decodeBase64 } from './utils/base64';
|
||||
import promiseFinally from 'promise.prototype.finally';
|
||||
|
||||
if (!Array.prototype.includes) {
|
||||
includes.shim();
|
||||
|
@ -23,6 +24,8 @@ if (!Number.isNaN) {
|
|||
Number.isNaN = isNaN;
|
||||
}
|
||||
|
||||
promiseFinally.shim();
|
||||
|
||||
if (!HTMLCanvasElement.prototype.toBlob) {
|
||||
const BASE64_MARKER = ';base64,';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue