diff --git a/README.md b/README.md index 6523a53..500ab8d 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,12 @@ Download from [Releases](https://notabug.org/nobody/an-anime-game-launcher/relea
+## Usage statistics + + + +
+ # Requirements To work this launcher requires diff --git a/repository-pics/statistics.png b/repository-pics/statistics.png new file mode 100644 index 0000000..f9eacb5 Binary files /dev/null and b/repository-pics/statistics.png differ diff --git a/src/ts/lib/Tools.ts b/src/ts/lib/Tools.ts index ba2c76b..55300d3 100644 --- a/src/ts/lib/Tools.ts +++ b/src/ts/lib/Tools.ts @@ -28,12 +28,11 @@ export class Tools { return new Promise(resolve => { getPixels(path, (err: void, pixels: any) => { - let response = []; + let response = [], offset = 0; - let width = pixels.shape[0], - height = pixels.shape[1], - depth = pixels.shape[2], - offset = 0; + const width = pixels.shape[0], + height = pixels.shape[1], + depth = pixels.shape[2]; for (let i = 0; i < height; ++i) for (let j = 0; j < width; ++j)