Skip to content

Commit

Permalink
Fix: Inline reply form on >1 comment pages
Browse files Browse the repository at this point in the history
  • Loading branch information
plibither8 committed May 19, 2020
1 parent 762cd6d commit 1052bb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/features/reply-without-leaving-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import {getAllComments, createSiblingLoader} from '../libs/dom-utils';
import {paths} from '../libs/paths';

function init(metadata) {
if (metadata.path === '/item') {
const searchParams = new URLSearchParams(window.location.search);
if (metadata.path === '/item' && !searchParams.get('p')) {
const replyForm = document.querySelector('table.fatitem form');
if (!replyForm) {
return false;
Expand Down

0 comments on commit 1052bb2

Please sign in to comment.