Extract canvas/webgl code to separate component

This commit is contained in:
Mononaut committed 2022-06-15 19:59:24 +00:00
1 parent c5bcf76353
commit 225decd286
13 files changed
+1128 -1033

No files matched your search

@@ -81,12 +81,12 @@ export class MempoolBlockComponent implements OnInit, OnDestroy {
}
setTxPreview(event: TransactionStripped | void): void {
this.previewTx = event
this.previewTx = event;
}
}
function detectWebGL () {
const canvas = document.createElement("canvas");
const gl = canvas.getContext("webgl") || canvas.getContext("experimental-webgl");
return (gl && gl instanceof WebGLRenderingContext)
function detectWebGL() {
const canvas = document.createElement('canvas');
const gl = canvas.getContext('webgl') || canvas.getContext('experimental-webgl');
return (gl && gl instanceof WebGLRenderingContext);
}