We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Steps:
<html> <head> <script src="protocolcheck.js"></script> </head> <body> <script> function test() { protocolCheck('blablabla', function() { alert("Failure!"); }, function() { alert("Success!"); } ); } </script> <button onclick="test()">Test</button> </body> </html>
Expected result: Failure callback is executed. Actual result: Failure and Success callbacks are executed.
Solution: In openUriWithHiddenFrame function change order of lines in timeout function. From:
openUriWithHiddenFrame
var timeout = setTimeout(function () { failCb(); handler.remove(); }, 1000);
to
var timeout = setTimeout(function () { handler.remove(); failCb(); }, 1000);
Also, it's better to do the same in detection code for Chrome (openUriWithTimeoutHack function).
openUriWithTimeoutHack
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Steps:
Expected result:
Failure callback is executed.
Actual result:
Failure and Success callbacks are executed.
Solution:
In
openUriWithHiddenFrame
function change order of lines in timeout function.From:
to
Also, it's better to do the same in detection code for Chrome (
openUriWithTimeoutHack
function).The text was updated successfully, but these errors were encountered: