wobblyhead hg > minor_monsters
comparison game/js/input.js @ 34:83e8b0e0f010 0.10.1
homepage link on splash does not open a new tab anymore
| author | ark |
|---|---|
| date | 2026-10-20 19:54 +0200 |
| parents | 85d23328a215 |
| children |
comparison
equal
deleted
inserted
replaced
| 33:767970d80214 | 34:83e8b0e0f010 |
|---|---|
| 165 function release(app, d, x, y) { | 165 function release(app, d, x, y) { |
| 166 var game = app.game(), L = app.layout(); | 166 var game = app.game(), L = app.layout(); |
| 167 if (d.button) { | 167 if (d.button) { |
| 168 var b = MM.ui.hit(game, L, x, y), links = MM.config.links; | 168 var b = MM.ui.hit(game, L, x, y), links = MM.config.links; |
| 169 if (!b || b.id !== d.button) return; | 169 if (!b || b.id !== d.button) return; |
| 170 if (b.id === "logo" && links.logo_url) window.open(links.logo_url, "_blank", "noopener"); | 170 if (b.id === "logo" && links.logo_url) window.location.href = links.logo_url; |
| 171 if (b.id === "email") { | 171 if (b.id === "email") { |
| 172 window.location.href = "mailto:" + links.email + "?subject=" + | 172 window.location.href = "mailto:" + links.email + "?subject=" + |
| 173 encodeURIComponent(links.email_subject); | 173 encodeURIComponent(links.email_subject); |
| 174 } | 174 } |
| 175 return; | 175 return; |
