forked from MarseyWorld/MarseyWorld
fix last commit
parent
c10342e835
commit
6f28acf4ae
|
@ -895,9 +895,8 @@
|
|||
const detectionDiv = document.querySelector('#detection');
|
||||
const isAutoDark = getComputedStyle(detectionDiv).backgroundColor != 'rgb(255, 255, 255)';
|
||||
if (!isAutoDark) {
|
||||
let element = document.getElementsByClassName('comment-section')
|
||||
const element = document.getElementsByClassName('comment-section')[0]
|
||||
if (element) {
|
||||
element = element[0];
|
||||
let color = getComputedStyle(element).getPropertyValue('background-color');
|
||||
color = 'rgba' + color.slice(3,-1) + ', 0.1)'
|
||||
|
||||
|
|
Loading…
Reference in New Issue