From 170e6a28aebf5f3bed662afde0e6c062bf7c3367 Mon Sep 17 00:00:00 2001 From: Daniel Brooks Date: Fri, 8 May 2015 14:45:26 -0700 Subject: [PATCH] tweak the hostname hack so that it works better with archive.org's test subdomains --- loader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loader.js b/loader.js index 4f0f6210..406daaeb 100644 --- a/loader.js +++ b/loader.js @@ -29,7 +29,7 @@ var Module = null; } // yea, this is a hack - if (document.location.hostname === "archive.org") { + if (/archive\.org$/.test(document.location.hostname)) { var images = { ia: img("/images/ialogo.png"), mame: img("/images/mame.png"), mess: img("/images/mess.png"),