Skip to content
This repository was archived by the owner on Sep 16, 2025. It is now read-only.

Commit f9d3ad8

Browse files
committed
Fixes the donate button
1 parent bcf5ded commit f9d3ad8

File tree

1 file changed

+18
-20
lines changed

1 file changed

+18
-20
lines changed

VirtualGloomhavenBoard/Elm/src/Main.elm

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1681,18 +1681,16 @@ getMenuHtml lockScenario lockPlayers scenarioId campaignTrackerName campaignTrac
16811681
|> shortcutHtml [ "", "s" ]
16821682
)
16831683
|> Dom.appendChildConditional
1684-
(
1685-
let
1686-
(name, url) =
1687-
(case ( campaignTrackerName, campaignTrackerUrl ) of
1688-
( Just n, Just u ) ->
1689-
(n, u)
1684+
(let
1685+
( name, url ) =
1686+
case ( campaignTrackerName, campaignTrackerUrl ) of
1687+
( Just n, Just u ) ->
1688+
( n, u )
16901689

1691-
_ ->
1692-
("", "")
1693-
)
1694-
in
1695-
Dom.element "li"
1690+
_ ->
1691+
( "", "" )
1692+
in
1693+
Dom.element "li"
16961694
|> Dom.addAttribute (attribute "role" "menuitem")
16971695
|> Dom.addAttribute (tabindex 0)
16981696
|> Dom.appendChild
@@ -1709,16 +1707,16 @@ getMenuHtml lockScenario lockPlayers scenarioId campaignTrackerName campaignTrac
17091707
_ ->
17101708
False
17111709
)
1712-
)
1713-
|> Dom.appendChild
1714-
(Dom.element "li"
1715-
|> Dom.addAttribute (attribute "role" "menuitem")
1716-
|> Dom.addAttribute (tabindex 0)
17171710
|> Dom.appendChild
1718-
(Dom.element "a"
1719-
|> Dom.addAttribute (href "https://github.com/sponsors/PurpleKingdomGames?o=esb")
1720-
|> Dom.addAttribute (target "_new")
1721-
|> Dom.appendText "Donate"
1711+
(Dom.element "li"
1712+
|> Dom.addAttribute (attribute "role" "menuitem")
1713+
|> Dom.addAttribute (tabindex 0)
1714+
|> Dom.appendChild
1715+
(Dom.element "a"
1716+
|> Dom.addAttribute (href "https://github.com/sponsors/PurpleKingdomGames?o=esb")
1717+
|> Dom.addAttribute (target "_new")
1718+
|> Dom.appendText "Donate"
1719+
)
17221720
)
17231721
)
17241722
|> Dom.render

0 commit comments

Comments
 (0)