Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
f9688a30
Commit
f9688a30
authored
Oct 31, 2019
by
Yuri Mataev
Committed by
Natalia Tepluhina
Oct 31, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mock_u2f_device.js: remove IIFE
parent
3f599913
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
spec/javascripts/u2f/mock_u2f_device.js
spec/javascripts/u2f/mock_u2f_device.js
+7
-11
No files found.
spec/javascripts/u2f/mock_u2f_device.js
View file @
f9688a30
/* eslint-disable no-unused-expressions
, no-return-assign, no-param-reassign
*/
/* eslint-disable no-unused-expressions */
export
default
class
MockU2FDevice
{
export
default
class
MockU2FDevice
{
constructor
()
{
constructor
()
{
this
.
respondToAuthenticateRequest
=
this
.
respondToAuthenticateRequest
.
bind
(
this
);
this
.
respondToAuthenticateRequest
=
this
.
respondToAuthenticateRequest
.
bind
(
this
);
this
.
respondToRegisterRequest
=
this
.
respondToRegisterRequest
.
bind
(
this
);
this
.
respondToRegisterRequest
=
this
.
respondToRegisterRequest
.
bind
(
this
);
window
.
u2f
||
(
window
.
u2f
=
{});
window
.
u2f
||
(
window
.
u2f
=
{});
window
.
u2f
.
register
=
(
function
(
_this
)
{
window
.
u2f
.
register
=
(
appId
,
registerRequests
,
signRequests
,
callback
)
=>
{
return
function
(
appId
,
registerRequests
,
signRequests
,
callback
)
{
this
.
registerCallback
=
callback
;
return
(
_this
.
registerCallback
=
callback
);
};
};
window
.
u2f
.
sign
=
(
appId
,
challenges
,
signRequests
,
callback
)
=>
{
})(
this
);
this
.
authenticateCallback
=
callback
;
window
.
u2f
.
sign
=
(
function
(
_this
)
{
};
return
function
(
appId
,
challenges
,
signRequests
,
callback
)
{
return
(
_this
.
authenticateCallback
=
callback
);
};
})(
this
);
}
}
respondToRegisterRequest
(
params
)
{
respondToRegisterRequest
(
params
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment