Skip to content

Commit 556ffcc

Browse files
committed
🐛 Fixed inline comments with more then one diff file
1 parent 5358be6 commit 556ffcc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Github_Comment_Enhancer/Github_Comment_Enhancer.user.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1279,7 +1279,7 @@
12791279
// For inline comments on commits;
12801280
var files = document.querySelectorAll('.diff-table');
12811281
Array.prototype.forEach.call(files, function(file) {
1282-
file = file.firstElementChild;
1282+
file = file.querySelector(".diff-table > tbody");
12831283
new MutationObserver(function(mutations) {
12841284
mutations.forEach(function(mutation) {
12851285
if (mutation.target === file) {

0 commit comments

Comments
 (0)