Skip to content

Commit 89b43f7

Browse files
committed
remove debug
1 parent 0a73095 commit 89b43f7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

web_src/js/features/file-fold.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@ import {svg} from '../svg.js';
77
//
88
export function setFileFolding(fileContentBox, foldArrow, newFold, isFromViewed = false) {
99
const diffFileHeader = fileContentBox.querySelector('.diff-file-header');
10-
console.log('newFold:', newFold)
1110
foldArrow.innerHTML = svg(`octicon-chevron-${newFold ? 'right' : 'down'}`, 18);
1211
fileContentBox.setAttribute('data-folded', newFold);
1312
// scroll position needs to be adjusted only when folding the file
1413
// and scrollY is greater than current file header's offsetTop
15-
if (newFold === 'true' && window.scrollY > diffFileHeader.offsetTop) {
14+
if (newFold && window.scrollY > diffFileHeader.offsetTop) {
1615
// if the file is folded by clicking the "fold file" icon, scroll to current file header
1716
let scrollTargetoffsetTop = fileContentBox.offsetTop;
1817
if (isFromViewed) {

0 commit comments

Comments
 (0)