mirror of
https://github.com/kenzok8/openwrt-packages.git
synced 2025-11-01 08:18:52 +08:00
update 2025-06-12 02:26:57
This commit is contained in:
@ -48,12 +48,9 @@ function renderStatus(isRunning, listen_port, noweb) {
|
||||
}
|
||||
|
||||
if (isRunning && noweb !== '1') {
|
||||
html += String.format(
|
||||
' <a class="btn cbi-button" href="%s:%s" target="_blank">%s</a>',
|
||||
window.location.origin,
|
||||
listen_port,
|
||||
_('Open Web Interface')
|
||||
);
|
||||
const baseUrl = `${window.location.protocol}//${window.location.hostname}`;
|
||||
const fullUrl = `${baseUrl}:${listen_port}`;
|
||||
html += String.format(' <a class="btn cbi-button" href="%s" target="_blank">%s</a>', fullUrl, _('Open Web Interface'));
|
||||
}
|
||||
|
||||
return html;
|
||||
|
||||
Reference in New Issue
Block a user