summaryrefslogtreecommitdiff
path: root/packages/client/src/scripts
diff options
context:
space:
mode:
authorKainoa Kanter <44733677+ThatOneCalculator@users.noreply.github.com>2022-01-26 00:11:41 -0800
committerGitHub <noreply@github.com>2022-01-26 17:11:41 +0900
commit25cac0089fe3ba1fff39d109c4c59f611533a572 (patch)
treea54c3fbb2eb2a0446c250fd596a2b93d81e2e732 /packages/client/src/scripts
parentUpdate extensions.json (diff)
downloadmisskey-25cac0089fe3ba1fff39d109c4c59f611533a572.tar.gz
misskey-25cac0089fe3ba1fff39d109c4c59f611533a572.tar.bz2
misskey-25cac0089fe3ba1fff39d109c4c59f611533a572.zip
Fix pop-out bug (#8170)
Diffstat (limited to 'packages/client/src/scripts')
-rw-r--r--packages/client/src/scripts/popout.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/client/src/scripts/popout.ts b/packages/client/src/scripts/popout.ts
index 51b8d72868..b8286a2a76 100644
--- a/packages/client/src/scripts/popout.ts
+++ b/packages/client/src/scripts/popout.ts
@@ -1,8 +1,8 @@
import * as config from '@/config';
export function popout(path: string, w?: HTMLElement) {
- let url = path.startsWith('http://') || path.startsWith('https://') ? path : config.url + path;
- url += '?zen'; // TODO: ちゃんとURLパースしてクエリ付ける
+ let url = path.startsWith('http://') || path.startsWith('https://') ? path : config.url + "/" + path;
+ url += '?zen';
if (w) {
const position = w.getBoundingClientRect();
const width = parseInt(getComputedStyle(w, '').width, 10);