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:
parent
1f8ae9ef80
commit
aa1e1549d8
@ -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/";
|
||||
}
|
||||
});
|
||||
}
|
||||
})();
|
||||
|
Loading…
Reference in New Issue
Block a user