kopia lustrzana https://github.com/cheeaun/phanpy
Make compose path relative
rodzic
2744c89e02
commit
cded263b06
|
@ -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);
|
||||
|
|
Ładowanie…
Reference in New Issue