remove bind polyfill from u2f/error.js

This commit is contained in:
Mike Greiling 2017-05-08 14:15:29 -05:00
parent 45e8503fac
commit 6cd552a174
1 changed files with 1 additions and 3 deletions

View File

@ -2,12 +2,10 @@
/* global u2f */
(function() {
var bind = function(fn, me) { return function() { return fn.apply(me, arguments); }; };
this.U2FError = (function() {
function U2FError(errorCode, u2fFlowType) {
this.errorCode = errorCode;
this.message = bind(this.message, this);
this.message = this.message.bind(this);
this.httpsDisabled = window.location.protocol !== 'https:';
this.u2fFlowType = u2fFlowType;
}