diff --git a/index.js b/index.js index 94e0441..72152b4 100644 --- a/index.js +++ b/index.js @@ -50,7 +50,7 @@ class BackgroundTimer { } backgroundClockMethod(callback, delay) { - this.backgroundTimer = setTimeout(() => { + this.backgroundTimer = this.setTimeout(() => { callback(); this.backgroundClockMethod(callback, delay); },