Commit b8230dc 1 parent 5324be7 commit b8230dc Copy full SHA for b8230dc
File tree 2 files changed +2
-10
lines changed
2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change 10
10
if (! project ) {
11
11
reject (' no-project' );
12
12
}
13
- // this timeout is needed because goto does not
14
- // throw an exception if the redirect does not work
15
- setTimeout (() => reject (' timeout' ), 500 );
16
- // goto will resolve on successful redirect
17
- goto (link ).then (resolve );
13
+ window .location = link ;
18
14
});
19
15
</script >
20
16
Original file line number Diff line number Diff line change 10
10
if (! project ) {
11
11
reject (' no-project' );
12
12
}
13
- // this timeout is needed because goto does not
14
- // throw an exception if the redirect does not work
15
- setTimeout (() => reject (' timeout' ), 500 );
16
- // goto will resolve on successful redirect
17
- goto (link ).then (resolve );
13
+ window .location = link ;
18
14
});
19
15
</script >
20
16
You can’t perform that action at this time.
0 commit comments