Skip to content

Commit

Permalink
only apply commentsAsFullPage on new reddit
Browse files Browse the repository at this point in the history
  • Loading branch information
creesch committed Oct 11, 2020
1 parent dfd9df8 commit b6da7fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extension/data/modules/comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ function comments () {
self.initOldReddit();
}
// Do not open lightbox but go to full comment page.
if (commentsAsFullPage) {
if (commentsAsFullPage && !TBCore.isOldReddit && !TBCore.isNewModmail) {
$body.on('click', 'a', function (event) {
const subredditCommentsPageReg = /^\/r\/([^/]*?)\/comments\/([^/]*?)\/([^/]*?)\/?$/;
const $this = $(this);
Expand Down

0 comments on commit b6da7fa

Please sign in to comment.