summary refs log tree commit diff
path: root/assets/preload-plugins/oauth2.js
blob: 5b78ec83b8d3d0bb2ac9ce07b3be06cb51f3f9c0 (plain) (blame)
1
2
3
4
5
6
7
8
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)
}