From 1c86fd935189b87ebd5069147cbb390ab6e25b3c Mon Sep 17 00:00:00 2001 From: Johnathon332 <1587290+Johnathon332@users.noreply.github.com> Date: Wed, 2 Aug 2023 12:17:27 +0800 Subject: [PATCH] Update README.md Updated counter up initialisation in browser section of README --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e03e37a..91d80a0 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ Example Pen: https://codepen.io/bfintal/pen/zYzOGpZ **JS** ```js -const { counterUp } = window.counterUp +const counterUp = window.counterUp.default const el = document.querySelector( '.counter' ) @@ -129,4 +129,4 @@ new Waypoint( { ``` ### Footnotes -An improvement to https://github.com/bfintal/Counter-Up \ No newline at end of file +An improvement to https://github.com/bfintal/Counter-Up