check if ad enabled

This commit is contained in:
2020-06-07 22:39:23 +02:00
parent 1a53def1ef
commit 5092659a21
4 changed files with 11 additions and 3 deletions

View File

@@ -133,6 +133,9 @@ Viewer.prototype.setFile = function(file) {
}
Viewer.prototype.renderSponsors = function() {
// Check if the ad is enabled
if (document.querySelector(".sponsors_banner") == null) { return }
let scaleWidth = 1
let scaleHeight = 1
let minWindowHeight = 800