From a02f929d343b7d2b5ca0c61dce019929fec9b7a0 Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Sat, 24 Dec 2022 18:55:14 +1100 Subject: OAuth2 authorize bot flow --- assets/preload-plugins/oauth2.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 assets/preload-plugins/oauth2.js (limited to 'assets/preload-plugins/oauth2.js') diff --git a/assets/preload-plugins/oauth2.js b/assets/preload-plugins/oauth2.js new file mode 100644 index 00000000..5b78ec83 --- /dev/null +++ b/assets/preload-plugins/oauth2.js @@ -0,0 +1,9 @@ +// Fixes /oauth2 endpoints not requesting a CSS file + +if (location.pathname.startsWith("/oauth2/")) { + const link = document.createElement("link"); + link.rel = "stylesheet" + link.type = "text/css" + link.href = "/assets/40532.f7b1e10347ef10e790ac.css" + document.head.appendChild(link) +} \ No newline at end of file -- cgit 1.5.1