mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 20:23:49 +01:00
Fix pop-out bug (#8170)
This commit is contained in:
parent
c61f76d533
commit
ea0dcd8240
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user