use constant for redirection delay time
This commit is contained in:
parent
6e2bab4175
commit
dd8a27f6d0
1 changed files with 3 additions and 1 deletions
|
@ -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]);
|
||||
|
||||
|
|
Loading…
Reference in a new issue