fix the workaround for the workaround

An embarrassing error. Thank you @phil-el for finding this and telling
me about it!
This commit is contained in:
Daniel Brooks
2017-03-17 18:22:55 -07:00
parent be247ecbcc
commit b5feee41fe
+1 -1
View File
@@ -770,7 +770,7 @@ var Module = null;
e.gamepad.index, e.gamepad.id);
});
if (/archive\.org$/.test(document.location.hostname && document.getElementById("gofullscreen"))) {
if (/archive\.org$/.test(document.location.hostname) && document.getElementById("gofullscreen")) {
document.getElementById("gofullscreen").addEventListener("click", this.requestFullScreen);
}