Skip to content

Commit 42368fb

Browse files
committed
fix: follow github DOM change
1 parent 1080623 commit 42368fb

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/content-script.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ function doShit(elem, pathname) {
1111

1212
FOCUS_STYLES.forEach(({ key, value }) => {
1313
elem.style.setProperty(key, value, "important");
14-
elem.nextElementSibling.style.setProperty(key, value, "important")
1514
});
1615
const draft = elem.value;
1716
if (!draft) {
@@ -21,8 +20,7 @@ function doShit(elem, pathname) {
2120
elem.addEventListener("blur", function() {
2221
FOCUS_STYLES.forEach(({ key, value }) => {
2322
elem.style.setProperty(key, "");
24-
elem.nextElementSibling.style.setProperty(key, "")
25-
})
23+
});
2624
});
2725

2826
elem.addEventListener("input", function(e) {

0 commit comments

Comments
 (0)