nano-pow 4.1.8 → 4.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/main.min.js +1 -1
  2. package/package.json +1 -1
package/dist/main.min.js CHANGED
@@ -798,7 +798,7 @@ try {
798
798
  }
799
799
  try {
800
800
  const gl = new OffscreenCanvas(0, 0)?.getContext?.("webgl2");
801
- isGlSupported = gl instanceof WebGL2RenderingContext;
801
+ isGlSupported = gl instanceof WebGL2RenderingContext && !gl.isContextLost();
802
802
  } catch (err) {
803
803
  console.warn("WebGL is not supported in this environment.\n", err);
804
804
  isGlSupported = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nano-pow",
3
- "version": "4.1.8",
3
+ "version": "4.1.9",
4
4
  "description": "Proof-of-work generation and validation with WebGPU/WebGL for Nano cryptocurrency.",
5
5
  "keywords": [
6
6
  "nemo",