--- a/web/index.js +++ b/web/index.js @@ -117,14 +117,13 @@ const GAME_BUTTON_MIN_PAD_Y = 6; const DEFAULT_GAME_TITLE = "Mazocarta"; const PREVIEW_GAME_TITLE = "Mazocarta Preview"; -const CREDITS_URL = "https://tim.cogan.dev"; const LOGO_ASSET_PATH = "./mazocarta.svg"; const COMBAT_ICON_ASSET_PATHS = [ - "./icons/combat/heart.png", - "./icons/combat/shield.png", - "./icons/combat/energy.png", - "./icons/combat/deck.png", - "./icons/combat/arrow.png", + "./icons/combat/heart.svg", + "./icons/combat/shield.svg", + "./icons/combat/energy.svg", + "./icons/combat/deck.svg", + "./icons/combat/arrow.svg", ]; const SHARE_CARD_WIDTH = 420; const SHARE_CARD_HEIGHT = 500; @@ -2769,13 +2768,8 @@ return false; } + // FredyGames: the author's credits link is not opened (no requests or navigation outside the site). wasm.clear_credits_link_request(); - const opened = window.open(CREDITS_URL, "_blank"); - if (opened) { - opened.opener = null; - } else { - window.location.href = CREDITS_URL; - } return true; } @@ -3378,6 +3372,8 @@ } async function registerServiceWorker() { + // FredyGames: the offline service worker is not shipped (the game runs inside the site). + return; if (!("serviceWorker" in window.navigator)) { return; } --- a/web/index.html +++ b/web/index.html @@ -11,8 +11,6 @@ Mazocarta - -