check if ad enabled

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

No files matched your search

+3
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