From d1b04e406b56b72d6de10c03b5a4d33894a44cba Mon Sep 17 00:00:00 2001 From: Victor Westerlund Date: Fri, 8 Oct 2021 17:04:33 +0200 Subject: [PATCH] Minor changes --- Monkeydo.mjs | 3 +-- do/Monkey.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Monkeydo.mjs b/Monkeydo.mjs index 62f8994..4cdf17e 100644 --- a/Monkeydo.mjs +++ b/Monkeydo.mjs @@ -95,7 +95,6 @@ export default class Monkeydo extends MonkeyWorker { // Execute tasks from Monkeydo manifest do() { // Hand over the loaded manifest to the MonkeyWorker task manager - const monkey = this.giveManifest(); - this.play(); + this.giveManifest().then(() => this.play()); } } \ No newline at end of file diff --git a/do/Monkey.js b/do/Monkey.js index 95a0cd8..95774b0 100644 --- a/do/Monkey.js +++ b/do/Monkey.js @@ -82,7 +82,7 @@ class Monkey { // Decrement loop iterations if not infinite (negative int) if(this.flags.loop > 0) { - this.flags.loop = this.flags.loop - 1; + this.flags.loop--; } }