NET-Web-API-w-Angular/my-app/node_modules/zone.js/fesm2015/zone-patch-user-media.js

19 lines
642 B
JavaScript
Executable file

'use strict';
/**
* @license Angular v<unknown>
* (c) 2010-2022 Google LLC. https://angular.io/
* License: MIT
*/
Zone.__load_patch('getUserMedia', (global, Zone, api) => {
function wrapFunctionArgs(func, source) {
return function () {
const args = Array.prototype.slice.call(arguments);
const wrappedArgs = api.bindArguments(args, source ? source : func.name);
return func.apply(this, wrappedArgs);
};
}
let navigator = global['navigator'];
if (navigator && navigator.getUserMedia) {
navigator.getUserMedia = wrapFunctionArgs(navigator.getUserMedia);
}
});