1
0
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:
2022-04-22 03:07:54 +00:00
parent d5cdf70705
commit 62cfe7b643
9 changed files with 28 additions and 15 deletions

View File

@@ -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`;
});
});