remove bind polyfill from u2f/error.js
This commit is contained in:
parent
45e8503fac
commit
6cd552a174
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue