added message option
This commit is contained in:
parent
e6617fecc5
commit
08ccf94056
@ -151,6 +151,7 @@ async function mainNoti(user) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
document.addEventListener("visibilitychange", function() {
|
document.addEventListener("visibilitychange", function() {
|
||||||
if (document.visibilityState === 'visible') {
|
if (document.visibilityState === 'visible') {
|
||||||
cansendNoti = false
|
cansendNoti = false
|
||||||
@ -159,6 +160,9 @@ document.addEventListener("visibilitychange", function() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if(window.location.href.includes("?mention=")) {
|
if(window.location.href.includes("mention=")) {
|
||||||
document.getElementById("post-text").innerText = `@${window.location.href.split("?mention=")[1]} `
|
document.getElementById("post-text").innerText = `@${decodeURIComponent(window.location.href.split("mention=")[1])} `
|
||||||
|
}
|
||||||
|
if(window.location.href.includes("message=")) {
|
||||||
|
document.getElementById("post-text").innerText = `${decodeURIComponent(window.location.href.split("message=")[1])} `
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user