Skip to content
Snippets Groups Projects
Commit 0084c151 authored by Shane Tomlinson's avatar Shane Tomlinson
Browse files

Adding a message as to why we use try/catch.

parent 0a71fd28
No related branches found
No related tags found
No related merge requests found
......@@ -41,9 +41,7 @@ window.console = window.console || {
steal.plugins()
.resources('../../dialog/resources/jschannel',
'../../dialog/resources/base64',
'../../dialog/resources/channel')
.resources('../../dialog/resources/jschannel')
.then(function() {
var ipServer = "https://browserid.org";
......@@ -63,7 +61,6 @@ steal.plugins()
});
window.browserid_relay = function(status, error) {
console.log("relay being called");
if(error) {
errorOut(transaction, error);
}
......@@ -71,7 +68,8 @@ steal.plugins()
try {
transaction.complete(status);
} catch(e) {
// The relay function is called a second time after the
// initial success, when the window is closing.
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment