mirror of
https://github.com/go-gitea/u2f-api.git
synced 2026-07-01 20:24:01 -04:00
Increased timeout for extension communication
This commit is contained in:
Vendored
+2
-2
@@ -632,8 +632,8 @@ u2f.isSupported = function(callback) {
|
||||
reply(true);
|
||||
}
|
||||
);
|
||||
// No response from extension within 200ms -> no support
|
||||
setTimeout(reply.bind(null, false), 200);
|
||||
// No response from extension within 500ms -> no support
|
||||
setTimeout(reply.bind(null, false), 500);
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
+2
-2
@@ -30,8 +30,8 @@
|
||||
+ reply(true);
|
||||
+ }
|
||||
+ );
|
||||
+ // No response from extension within 200ms -> no support
|
||||
+ setTimeout(reply.bind(null, false), 200);
|
||||
+ // No response from extension within 500ms -> no support
|
||||
+ setTimeout(reply.bind(null, false), 500);
|
||||
+};
|
||||
+
|
||||
+/**
|
||||
|
||||
Reference in New Issue
Block a user