1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2024-10-17 09:42:45 +02:00
TweetDuck/resources/Content/login/setup_document_attributes.js

12 lines
314 B
JavaScript

/**
* Sets up attributes on the <html> element for styling login/logout pages.
*/
export default function() {
if (location.pathname === "/login") {
document.documentElement.setAttribute("login", "");
}
else if (location.pathname === "/logout") {
document.documentElement.setAttribute("logout", "");
}
};