Skip to content

Commit 2b8709d

Browse files
committed
Fix savegame load error on missing mod website
Not a proper fix, but this thing needs a huge refactor anyway. Goodbye, a bug that existed ever since the first version of mod support!
1 parent d95fce7 commit 2b8709d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/states/main_menu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ export class MainMenuState extends GameState {
538538
<div class="dialogModsMod">
539539
<div class="name">${mod.name}</div>
540540
<div class="version">${T.mods.version} ${mod.version}</div>
541-
<button class="website styledButton" onclick="window.open('${mod.website.replace(
541+
<button class="website styledButton" onclick="window.open('${mod.website?.replace(
542542
/"'/,
543543
""
544544
)}')">${T.mods.modWebsite}

0 commit comments

Comments
 (0)