File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -438,8 +438,6 @@ export async function handleReply($el) {
438
438
439
439
export function initRepoPullRequestReview ( ) {
440
440
if ( window . location . hash && window . location . hash . startsWith ( '#issuecomment-' ) ) {
441
- // set scrollRestoration to 'manual' when there is a hash in url, so that the scroll position will not be remembered after refreshing
442
- ( history . scrollRestoration != 'manual' ) && ( history . scrollRestoration = 'manual' ) ;
443
441
const commentDiv = $ ( window . location . hash ) ;
444
442
if ( commentDiv ) {
445
443
// get the name of the parent id
@@ -451,8 +449,8 @@ export function initRepoPullRequestReview() {
451
449
$ ( `#code-comments-${ id } ` ) . removeClass ( 'gt-hidden' ) ;
452
450
$ ( `#code-preview-${ id } ` ) . removeClass ( 'gt-hidden' ) ;
453
451
$ ( `#hide-outdated-${ id } ` ) . removeClass ( 'gt-hidden' ) ;
454
- // if the comment box is folded, expand it
455
- if ( ancestorDiffBox . attr ( 'data-folded' ) && ancestorDiffBox . attr ( 'data-folded' ) === " true" ) {
452
+ // if the comment box is folded, expand it
453
+ if ( ancestorDiffBox . attr ( 'data-folded' ) && ancestorDiffBox . attr ( 'data-folded' ) === ' true' ) {
456
454
setFileFolding ( ancestorDiffBox [ 0 ] , ancestorDiffBox [ 0 ] . querySelector ( '.fold-file' ) , false ) ;
457
455
}
458
456
commentDiv [ 0 ] . scrollIntoView ( {
You can’t perform that action at this time.
0 commit comments