mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-01 22:59:28 +00:00
Fix ios safari
This commit is contained in:
@@ -17,8 +17,9 @@
|
||||
|
||||
<script>
|
||||
document.querySelectorAll('.classUser i').forEach(elem => {
|
||||
elem.addEventListener('click', (e) => {
|
||||
const userId = e.path[1].getAttribute('data-uid');
|
||||
elem.addEventListener(touchEvent, (e) => {
|
||||
const path = e.path || (e.composedPath && e.composedPath());
|
||||
const userId = path[1].getAttribute('data-uid');
|
||||
window.location.href = `${window.location.href}/${userId}/remove`;
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user