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

View file

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