mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-17 17:47:03 +00:00
ui: Eliminate javascript:void, closes #130
This commit is contained in:
@@ -117,7 +117,16 @@ update msg model =
|
||||
LinkClicked req ->
|
||||
case req of
|
||||
Browser.Internal url ->
|
||||
( model, Nav.pushUrl model.session.key (Url.toString url), Session.none )
|
||||
case url.fragment of
|
||||
Just "" ->
|
||||
-- Anchor tag for accessibility purposes only, already handled.
|
||||
( model, Cmd.none, Session.none )
|
||||
|
||||
_ ->
|
||||
( model
|
||||
, Nav.pushUrl model.session.key (Url.toString url)
|
||||
, Session.none
|
||||
)
|
||||
|
||||
Browser.External url ->
|
||||
( model, Nav.load url, Session.none )
|
||||
|
||||
@@ -573,7 +573,7 @@ messageBody message bodyMode =
|
||||
a
|
||||
[ classList [ ( "active", bodyMode == mode ) ]
|
||||
, onClick (MessageBody mode)
|
||||
, href "javacript:void(0)"
|
||||
, href "#"
|
||||
]
|
||||
[ text label ]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user