Skip to content

Instantly share code, notes, and snippets.

@pixeldesu
Created March 22, 2015 14:20
Show Gist options
  • Save pixeldesu/c0ad8deacd342a01ac44 to your computer and use it in GitHub Desktop.
Save pixeldesu/c0ad8deacd342a01ac44 to your computer and use it in GitHub Desktop.
I'm not exactly sure for what we are registering...
function PostRegistration() {
progressind.innerHTML = "Migrating to 512-bit crypto identifier...";
$.ajax( "https://dangeredwolf.com/tdedb/register.php?regname=" + GetPreferencesIdentifierFromCrypto())
.done(function(meh) {
if (meh === "OK") {
progressind.innerHTML = "Upgrade Complete!";
setTimeout(function(){
progressind.innerHTML = "Welcome to Enhancer 5.0.4";
},1000);
setTimeout(function(){
progressind.innerHTML = "Restarting TweetDeck";
},2500);
setTimeout(function(){
location.reload();
},3000);
} else {
progressind.innerHTML = "Error: Unknown Response";
setTimeout(function(){
location.reload();
},2500);
}
})
.fail(function() {
console.log("An error occurred contacting dangeredwolf.com");
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment