1
0
mirror of https://github.com/thebaer/MMRA synced 2024-11-13 10:11:01 +00:00

Check for null dickbars before applying styles

This commit is contained in:
Matt Baer 2017-08-30 23:12:41 -04:00
parent 2cfbf29054
commit 9d0d8e139b

View File

@ -16,8 +16,14 @@ var makeReadable = function() {
};
var hideDickbar = function() {
document.querySelector('.js-postShareWidget').style.display = 'none';
document.querySelector('footer > .container:first-child').style.display = 'none';
var dickbar = document.querySelector('.js-postShareWidget');
if (dickbar != null) {
dickbar.style.display = 'none';
}
var footerDickbar = document.querySelector('footer > .container:first-child');
if (footerDickbar != null) {
footerDickbar.style.display = 'none';
}
};
var disableLazyLoading = function() {