Skip to content

Commit

Permalink
[playerlib.js] Fix "Play here" not working when in Hotspot
Browse files Browse the repository at this point in the history
  • Loading branch information
moodeaudio committed Feb 5, 2025
1 parent 2406f39 commit 028cb43
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion www/js/playerlib.js
Original file line number Diff line number Diff line change
Expand Up @@ -2851,7 +2851,9 @@ $(document).on('click', '.context-menu a', function(e) {
if (SESSION.json['mpd_httpd'] != '1' || SESSION.json['mpd_httpd_encoder'] != 'lame') {
notify(NOTIFY_TITLE_ALERT, 'play_here_config_error', NOTIFY_DURATION_MEDIUM);
} else {
window.open('http://' + SESSION.json['ipaddress'] + ':' + SESSION.json['mpd_httpd_port'], '_blank');
var host = SESSION.json['ap_network_addr'].includes(SESSION.json['ipaddress']) ?
SESSION.json['hostname'] + '.local' : SESSION.json['ipaddress'];
window.open('http://' + host + ':' + SESSION.json['mpd_httpd_port'], '_blank');
}
break;
case 'edit_station':
Expand Down

0 comments on commit 028cb43

Please sign in to comment.