summary refs log tree commit diff
path: root/assets/preload-plugins/oauth2.js
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-12-24 18:55:14 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-12-24 18:55:14 +1100
commita02f929d343b7d2b5ca0c61dce019929fec9b7a0 (patch)
tree6f5799ec84f3120969ca17d806dffac214bff73b /assets/preload-plugins/oauth2.js
parentFix creating bot accounts (diff)
downloadserver-a02f929d343b7d2b5ca0c61dce019929fec9b7a0.tar.xz
OAuth2 authorize bot flow
Diffstat (limited to 'assets/preload-plugins/oauth2.js')
-rw-r--r--assets/preload-plugins/oauth2.js9
1 files changed, 9 insertions, 0 deletions
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