mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-06 01:24:04 +00:00
Fix buttons not working in Mods View
This commit is contained in:
parent
e57a1f8212
commit
4ba70cf2ef
@ -30,7 +30,7 @@ export const THIRDPARTY_URLS = {
|
|||||||
26: "https://www.youtube.com/watch?v=gfm6dS1dCoY",
|
26: "https://www.youtube.com/watch?v=gfm6dS1dCoY",
|
||||||
},
|
},
|
||||||
|
|
||||||
modBrowser: "https://shapez.mod.io/?preview=f55f6304ca4873d9a25f3b575571b948",
|
modBrowser: "https://shapez.mod.io/",
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,9 +1,11 @@
|
|||||||
import { openStandaloneLink, THIRDPARTY_URLS } from "../core/config";
|
import { openStandaloneLink, THIRDPARTY_URLS } from "../core/config";
|
||||||
|
import { queryParamOptions } from "../core/query_parameters";
|
||||||
import { TextualGameState } from "../core/textual_game_state";
|
import { TextualGameState } from "../core/textual_game_state";
|
||||||
import { MODS } from "../mods/modloader";
|
import { MODS } from "../mods/modloader";
|
||||||
import { T } from "../translations";
|
import { T } from "../translations";
|
||||||
|
|
||||||
const MODS_SUPPORTED = !G_IS_STEAM_DEMO && (G_IS_STANDALONE || G_IS_DEV);
|
const MODS_SUPPORTED =
|
||||||
|
!G_IS_STEAM_DEMO && (G_IS_STANDALONE || (G_IS_DEV && !window.location.href.includes("demo")));
|
||||||
|
|
||||||
export class ModsState extends TextualGameState {
|
export class ModsState extends TextualGameState {
|
||||||
constructor() {
|
constructor() {
|
||||||
@ -48,8 +50,9 @@ export class ModsState extends TextualGameState {
|
|||||||
<div class="noModSupport">
|
<div class="noModSupport">
|
||||||
|
|
||||||
<p>${T.mods.noModSupport}</p>
|
<p>${T.mods.noModSupport}</p>
|
||||||
|
<br>
|
||||||
<a href="#" class="steamLink steam_2_npr" target="_blank">Get on Steam!</a>
|
<button class="styledButton browseMods">${T.mods.browseMods}</button>
|
||||||
|
<a href="#" class="steamLink steam_dlbtn_0" target="_blank">Get on Steam!</a>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user