1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-26 12:12:31 +01:00
server/assets/preload-plugins/oauth2.js
2022-12-24 18:55:14 +11:00

9 lines
285 B
JavaScript

// 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)
}