1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-04-13 09:15:47 +02:00

Fix Twitter's broken Cancel button when logging out

This commit is contained in:
chylex 2018-05-03 15:04:09 +02:00
parent 1f8ae9ef80
commit aa1e1549d8

View File

@ -60,4 +60,16 @@
}
});
}
//
// Block: Fix broken Cancel button on logout page.
//
else if (location.pathname === "/logout"){
document.addEventListener("DOMContentLoaded", function(){
let cancel = document.querySelector(".buttons .cancel");
if (cancel && cancel.tagName === "A"){
cancel.href = "https://tweetdeck.twitter.com/";
}
});
}
})();