15 lines
460 B
JavaScript
15 lines
460 B
JavaScript
window.infatuated = {};
|
|
(function() {
|
|
"use strict";
|
|
|
|
infatuated.newAudio = function() { return new Audio(); }
|
|
infatuated.newImage = function() { return new Image(); }
|
|
infatuated.newXMLHttpRequest = function() { return new XMLHttpRequest(); }
|
|
|
|
var url = new URL(location.href);
|
|
var game = url.searchParams.get("game");
|
|
infatuated.game = game ? "game-"+game : "game";
|
|
var shim = url.searchParams.get("shim");
|
|
infatuated.shim = shim ? shim : "";
|
|
})();
|