Fix Brave Aggressively block fingerprinting mode (#1078)

Attempt fix Brave `Aggressively block fingerprinting` mode
This commit is contained in:
Vítor Vasconcellos
2023-07-06 02:10:57 -03:00
committed by GitHub
parent 0a91633969
commit 3cbdefced5

View File

@@ -34,6 +34,7 @@ export function detectWebGLContext() {
(ctx) =>
ctx != null &&
(ctx instanceof WebGLRenderingContext ||
(WebGL2RenderingContext != null && ctx instanceof WebGL2RenderingContext))
(WebGL2RenderingContext != null && ctx instanceof WebGL2RenderingContext)) &&
ctx.getParameter(ctx.VERSION) != null
);
}