Skip to content

Commit

Permalink
tweak the hostname hack so that it works better with archive.org's te…
Browse files Browse the repository at this point in the history
…st subdomains
  • Loading branch information
db48x committed May 8, 2015
1 parent 1d91bfd commit 170e6a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit 170e6a2

Please sign in to comment.