source: trip-planner-front/node_modules/zone.js/fesm2015/zone-patch-canvas.js@ fa375fe

Last change on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 764 bytes
Line 
1'use strict';
2/**
3 * @license Angular v12.0.0-next.0
4 * (c) 2010-2020 Google LLC. https://angular.io/
5 * License: MIT
6 */
7/**
8 * @license
9 * Copyright Google LLC All Rights Reserved.
10 *
11 * Use of this source code is governed by an MIT-style license that can be
12 * found in the LICENSE file at https://angular.io/license
13 */
14Zone.__load_patch('canvas', (global, Zone, api) => {
15 const HTMLCanvasElement = global['HTMLCanvasElement'];
16 if (typeof HTMLCanvasElement !== 'undefined' && HTMLCanvasElement.prototype &&
17 HTMLCanvasElement.prototype.toBlob) {
18 api.patchMacroTask(HTMLCanvasElement.prototype, 'toBlob', (self, args) => {
19 return { name: 'HTMLCanvasElement.toBlob', target: self, cbIdx: 0, args: args };
20 });
21 }
22});
Note: See TracBrowser for help on using the repository browser.