This commit is contained in:
lunaticbum 2024-12-06 18:27:51 +09:00
parent a1faf405c8
commit 0948fd50b4

View File

@ -109,22 +109,22 @@ function postLogin(target,type, data, key,callBackResult) {
function mainPath() { function mainPath() {
console.log(`location.port >> ${location.port}`) console.log(`location.port >> ${location.port}`)
if ('443' === location.port) { if ('443' === location.port) {
location = location.protocol + "//" + location.hostname + ":" + location.port document.location.replace(location.protocol + "//" + location.hostname + ":" + location.port)
} else { } else {
location = location.protocol + "//" + location.hostname document.location.replace(location.protocol + "//" + location.hostname)
} }
} }
function gotoWrite() { function gotoWrite() {
document.location.href = getMainPath()+"/blog/write" document.location.replace(getMainPath()+"/blog/write")
} }
function gotoModify() { function gotoModify() {
document.location.href = getMainPath()+"/blog/modify" document.location.replace(getMainPath()+"/blog/modify")
} }
function gotoWhere() { function gotoWhere() {
document.location.href = getMainPath()+"/bums/where" document.location.replace(getMainPath()+"/bums/where")
} }
function logout() { function logout() {