mirror of
https://github.com/paricafe/misskey.git
synced 2024-12-01 14:46:44 -06:00
Merge branch 'develop' of https://github.com/misskey-dev/misskey into develop
This commit is contained in:
commit
ea8a94e6e2
1 changed files with 2 additions and 2 deletions
|
@ -1,8 +1,8 @@
|
||||||
import * as config from '@/config';
|
import * as config from '@/config';
|
||||||
|
|
||||||
export function popout(path: string, w?: HTMLElement) {
|
export function popout(path: string, w?: HTMLElement) {
|
||||||
let url = path.startsWith('http://') || path.startsWith('https://') ? path : config.url + path;
|
let url = path.startsWith('http://') || path.startsWith('https://') ? path : config.url + "/" + path;
|
||||||
url += '?zen'; // TODO: ちゃんとURLパースしてクエリ付ける
|
url += '?zen';
|
||||||
if (w) {
|
if (w) {
|
||||||
const position = w.getBoundingClientRect();
|
const position = w.getBoundingClientRect();
|
||||||
const width = parseInt(getComputedStyle(w, '').width, 10);
|
const width = parseInt(getComputedStyle(w, '').width, 10);
|
||||||
|
|
Loading…
Reference in a new issue