mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Refine the running homepage. v4.0.221
This commit is contained in:
parent
574afb4320
commit
fb93631407
1 changed files with 2 additions and 2 deletions
|
@ -61,9 +61,9 @@
|
||||||
|
|
||||||
// The player url.
|
// The player url.
|
||||||
if (true) {
|
if (true) {
|
||||||
const prefix = 'players/';
|
const prefix = `players/?schema=${window.location.protocol.replace(':', '')}`;
|
||||||
// If not 8080, user should proxy to the default port.
|
// If not 8080, user should proxy to the default port.
|
||||||
const query = parseInt(window.location.port) === 8080 ? '' : `?port=${window.location.port}`;
|
const query = parseInt(window.location.port) === 8080 ? '' : `&port=${window.location.port}`;
|
||||||
document.getElementById("enPlayer").setAttribute('href', `${prefix}${query}`);
|
document.getElementById("enPlayer").setAttribute('href', `${prefix}${query}`);
|
||||||
document.getElementById("cnPlayer").setAttribute('href', `${prefix}${query}`);
|
document.getElementById("cnPlayer").setAttribute('href', `${prefix}${query}`);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue