Make compose path relative

pull/1203/head
Lim Chee Aun 2025-06-19 09:09:03 +08:00
rodzic 2744c89e02
commit cded263b06
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -1,7 +1,7 @@
import { t } from '@lingui/core/macro';
export default function openCompose(opts) {
const url = URL.parse('/compose/', window.location);
const url = URL.parse('./compose/', window.location);
const { width: screenWidth, height: screenHeight } = window.screen;
const left = Math.max(0, (screenWidth - 600) / 2);
const top = Math.max(0, (screenHeight - 450) / 2);