mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-17 21:15:47 +02:00
12 lines
314 B
JavaScript
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", "");
|
|
}
|
|
};
|