From 71573c1e8c0cde1755106f63891472bc674fa59d Mon Sep 17 00:00:00 2001 From: Mykola Mokhnach Date: Wed, 7 Aug 2024 17:14:06 +0200 Subject: [PATCH] simplify --- lib/mixins/navigate.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/mixins/navigate.js b/lib/mixins/navigate.js index ae24c15..cb8f92b 100644 --- a/lib/mixins/navigate.js +++ b/lib/mixins/navigate.js @@ -205,8 +205,7 @@ export async function navToUrl (url) { /** @type {B} */ const pageReadinessPromise = new B((resolve) => { - /** @type {() => Promise} */ - let performPageReadinessCheck = async () => { + const performPageReadinessCheck = async () => { while (isPageLoading) { const pageReadyCheckStart = new timing.Timer().start(); try {