diff --git a/js/ajax.js b/js/ajax.js index f196ee2..4169c2e 100644 --- a/js/ajax.js +++ b/js/ajax.js @@ -23,7 +23,12 @@ var onSignin = function(result) { var timestamp = Math.round((new Date()).getTime() / 1000); setTimeout(signin, (sessionTime-timestamp)*0.4*1000); } else { - alert("[ERROR] Sign in failed: '" + result.error + "'."); + if(result.feedback) { + alert("[ERROR] Sign in failed: '" + result.error + "'."); + } else { + eventEmitter.emitEvent('state', ['Sign in failed: ' + result.error + '. Try again in 10s.']); + setTimeout(signin, 10000); + } } } diff --git a/js/spammer.js b/js/spammer.js index c277664..66dc3fc 100644 --- a/js/spammer.js +++ b/js/spammer.js @@ -15,11 +15,11 @@ var httpsProviders = null; var validProviders = null; var currentProvider = null; -var spamSeed = "ERROR9999999999999COULD9NOT9CONNECT9TO9IOTA9SPAM9FUND9WEBSITE9TO9RECEIVE9ADDRESS9";//generateSeed() +var spamSeed = "ERROR9999999999999COULD9NOT9CONNECT9TO9IOTA9SPAM9FUND9WEBSITE9TO9RECEIVE9ADDRESS9"; var message = "999"; var weight = 14; -var tag = "99999IOTASPAMFUND"; +var tag = "IOTASPAMFUND"; var iotaTransactionSpammer = (function(){ const iotaLib = window.IOTA