chronograph-npm 0.0.4 → 0.0.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/package.json +1 -1
  2. package/src/cg.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chronograph-npm",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "The Chronograph App for Athom's Homey",
5
5
  "main": "src/cg.js",
6
6
  "types": "./dist/cg.d.ts",
package/src/cg.js CHANGED
@@ -9,7 +9,7 @@ class CG {
9
9
  homey.app.onUninit = async function (args) {
10
10
 
11
11
  try {
12
- if (CG.Current) await CG.Current.detroy();
12
+ if (CG) await CG.detroy();
13
13
  } catch (error) {
14
14
  console.log(error);
15
15
  }