Commit e0c6ea87 authored by Mike Greiling's avatar Mike Greiling

remove bind polyfill from mock_u2f_device.js

parent 8d60a9b6
/* eslint-disable space-before-function-paren, no-var, prefer-rest-params, wrap-iife, no-unused-expressions, no-return-assign, no-param-reassign, max-len */ /* eslint-disable space-before-function-paren, no-var, prefer-rest-params, wrap-iife, no-unused-expressions, no-return-assign, no-param-reassign, max-len */
(function() { (function() {
var bind = function(fn, me) { return function() { return fn.apply(me, arguments); }; };
this.MockU2FDevice = (function() { this.MockU2FDevice = (function() {
function MockU2FDevice() { function MockU2FDevice() {
this.respondToAuthenticateRequest = bind(this.respondToAuthenticateRequest, this); this.respondToAuthenticateRequest = this.respondToAuthenticateRequest.bind(this);
this.respondToRegisterRequest = bind(this.respondToRegisterRequest, this); this.respondToRegisterRequest = this.respondToRegisterRequest.bind(this);
window.u2f || (window.u2f = {}); window.u2f || (window.u2f = {});
window.u2f.register = (function(_this) { window.u2f.register = (function(_this) {
return function(appId, registerRequests, signRequests, callback) { return function(appId, registerRequests, signRequests, callback) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment