Port a3a2414f0e
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
local
parent
e22a88b512
commit
526fe33e2f
7 changed files with 17 additions and 29 deletions
@ -1,26 +1,16 @@ |
||||
import 'intl'; |
||||
import 'intl/locale-data/jsonp/en'; |
||||
import 'es6-symbol/implement'; |
||||
import assign from 'object-assign'; |
||||
import values from 'object.values'; |
||||
import { decode as decodeBase64 } from './utils/base64'; |
||||
import promiseFinally from 'promise.prototype.finally'; |
||||
|
||||
if (!Object.assign) { |
||||
Object.assign = assign; |
||||
} |
||||
|
||||
if (!Object.values) { |
||||
values.shim(); |
||||
} |
||||
|
||||
promiseFinally.shim(); |
||||
import 'core-js/features/object/assign'; |
||||
import 'core-js/features/object/values'; |
||||
import 'core-js/features/symbol'; |
||||
import 'core-js/features/promise/finally'; |
||||
import { decode as decodeBase64 } from '../utils/base64'; |
||||
|
||||
if (!HTMLCanvasElement.prototype.toBlob) { |
||||
const BASE64_MARKER = ';base64,'; |
||||
|
||||
Object.defineProperty(HTMLCanvasElement.prototype, 'toBlob', { |
||||
value(callback, type = 'image/png', quality) { |
||||
value(callback: BlobCallback, type = 'image/png', quality: any) { |
||||
const dataURL = this.toDataURL(type, quality); |
||||
let data; |
||||
|
Loading…
Reference in new issue