Skip to content

Commit

Permalink
Fix CSS bug close #17
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Works committed Apr 19, 2019
1 parent 5fddf2c commit 22c3476
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/extension/content-script/injections/Posts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ new MutationObserverWatcher(posts)
more.click()
}
}
{
function zipPostContent() {
const pe = node.current.parentElement
// Style modification for repost
if (!node.current.className.match('userContent') && node.current.innerText.length > 0) {
node.after.setAttribute(
Expand All @@ -66,9 +67,6 @@ new MutationObserverWatcher(posts)
padding: 0px 10px;`,
)
}
}
function zipPostContent() {
const pe = node.current.parentElement
if (pe) {
const p = pe.querySelector('p')
if (p) {
Expand Down

0 comments on commit 22c3476

Please sign in to comment.