diff options
Diffstat (limited to 'assets/preload-plugins/oauth2.js')
-rw-r--r-- | assets/preload-plugins/oauth2.js | 9 |
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 |