Refine the running homepage. v4.0.221
This commit is contained in:
parent
fb93631407
commit
d47dd81f46
|
|
@ -62,8 +62,9 @@
|
|||
// The player url.
|
||||
if (true) {
|
||||
const prefix = `players/?schema=${window.location.protocol.replace(':', '')}`;
|
||||
const httpPort = window.location.port || (window.location.protocol === 'http:' ? 80 : 443);
|
||||
// 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=${httpPort}`;
|
||||
document.getElementById("enPlayer").setAttribute('href', `${prefix}${query}`);
|
||||
document.getElementById("cnPlayer").setAttribute('href', `${prefix}${query}`);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user