visual-song 0.8.4 → 0.8.5

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/index.js +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -9832,8 +9832,6 @@ const VisualSong = /*#__PURE__*/ forwardRef(function VisualSong({ style, mainLoo
9832
9832
  function destroy() {
9833
9833
  if (module.current) {
9834
9834
  module.current.deInitialize();
9835
- if (module.current) module.current["canvas"] = null;
9836
- module.current = null;
9837
9835
  const gl = canvasRef.current.getContext('webgl2') || canvasRef.current.getContext('webgl') || canvasRef.current.getContext('experimental-webgl');
9838
9836
  console.log(gl);
9839
9837
  const ext = gl && gl.getExtension && gl.getExtension('WEBGL_lose_context');
@@ -9843,6 +9841,8 @@ const VisualSong = /*#__PURE__*/ forwardRef(function VisualSong({ style, mainLoo
9843
9841
  ext.loseContext();
9844
9842
  } catch {}
9845
9843
  }
9844
+ if (module.current) module.current["canvas"] = null;
9845
+ module.current = null;
9846
9846
  }
9847
9847
  }
9848
9848
  return /*#__PURE__*/ jsx("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "visual-song",
3
- "version": "0.8.4",
3
+ "version": "0.8.5",
4
4
  "description": "visual-song core library",
5
5
  "author": "kunyoungparkk (rjsdud3263@gmail.com)",
6
6
  "license": "MIT",