From dd8a27f6d062372d91aecc992eddaa71b5d20960 Mon Sep 17 00:00:00 2001 From: btzr-io Date: Sun, 8 Aug 2021 00:59:41 -0500 Subject: [PATCH] use constant for redirection delay time --- web/page/openInDesktop/view.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/page/openInDesktop/view.jsx b/web/page/openInDesktop/view.jsx index 797e8d16a..ebda19a3f 100644 --- a/web/page/openInDesktop/view.jsx +++ b/web/page/openInDesktop/view.jsx @@ -5,6 +5,8 @@ import Yrbl from 'component/yrbl'; import Button from 'component/button'; const { buildURI } = require('lbry-redux'); +const DELAY_TIME = 1500; + // Landing page for opening lbry urls on external applications. type Props = { match: { @@ -38,7 +40,7 @@ const OpenInDesktop = (props: Props) => { setTimeout(() => { setTitle('Ready!'); window.open(claimUrl, '_top'); - }, 1500); + }, DELAY_TIME); } }, [claimUrl]);