Skip to content

Commit

Permalink
fix firefox empty target blank
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Jun 13, 2018
1 parent 87e137e commit c3dc104
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/template/player.art
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@
<div class="dplayer-menu">
{{ each options.contextmenu }}
<div class="dplayer-menu-item">
<a target="_blank" href="{{ $value.link || 'javascript:void(0);' }}">{{ tran($value.text) }}</a>
<a{{ if $value.link }} target="_blank"{{ /if }} href="{{ $value.link || 'javascript:void(0);' }}">{{ tran($value.text) }}</a>
</div>
{{ /each }}
</div>
Expand Down

0 comments on commit c3dc104

Please sign in to comment.