web/rac: disable DPI scaling (#11757)

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L.
2024-10-21 17:28:57 +02:00
committed by GitHub
parent b6da6219fb
commit af4a1e4576

View File

@ -86,8 +86,8 @@ export class RacInterface extends Interface {
static domSize(): { width: number; height: number } {
const size = document.body.getBoundingClientRect();
return {
width: size.width * window.devicePixelRatio,
height: size.height * window.devicePixelRatio,
width: size.width,
height: size.height,
};
}
@ -175,7 +175,6 @@ export class RacInterface extends Interface {
const params = new URLSearchParams();
params.set("screen_width", Math.floor(RacInterface.domSize().width).toString());
params.set("screen_height", Math.floor(RacInterface.domSize().height).toString());
params.set("screen_dpi", (window.devicePixelRatio * 96).toString());
this.client.connect(params.toString());
}