hgdf
This commit is contained in:
@@ -849,7 +849,12 @@ window.cancelAnimFrame = (function () {
|
||||
if (e.target.closest('.nav-avatar-img')) {
|
||||
const username = window.f0ckSession?.user;
|
||||
if (username) {
|
||||
window.location.href = `/user/${username.toLowerCase()}`;
|
||||
const url = `/user/${username.toLowerCase()}`;
|
||||
if (typeof window.loadPageAjax === 'function') {
|
||||
window.loadPageAjax(url, true);
|
||||
} else {
|
||||
window.location.href = url;
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -9275,7 +9280,12 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||
if (e.target.closest('.nav-avatar-img')) {
|
||||
const username = window.f0ckSession?.user;
|
||||
if (username) {
|
||||
window.location.href = `/user/${username.toLowerCase()}`;
|
||||
const url = `/user/${username.toLowerCase()}`;
|
||||
if (typeof window.loadPageAjax === 'function') {
|
||||
window.loadPageAjax(url, true);
|
||||
} else {
|
||||
window.location.href = url;
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user