From e40471ddc857a53b763f122a4934457e69d7281d Mon Sep 17 00:00:00 2001 From: James Rae Date: Sun, 15 Sep 2024 13:47:26 -0400 Subject: [PATCH] Fix time calc on cancelAnimationFrame --- files/en-us/web/api/window/cancelanimationframe/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/en-us/web/api/window/cancelanimationframe/index.md b/files/en-us/web/api/window/cancelanimationframe/index.md index e372eefdc19f311..b49f4665dfa6732 100644 --- a/files/en-us/web/api/window/cancelanimationframe/index.md +++ b/files/en-us/web/api/window/cancelanimationframe/index.md @@ -31,7 +31,7 @@ None ({{jsxref("undefined")}}). ## Examples ```js -const start = Date.now(); +const start = document.timeline.currentTime; let myReq;