Skip to content
Snippets Groups Projects
Unverified Commit 25cac008 authored by Kainoa Kanter's avatar Kainoa Kanter Committed by GitHub
Browse files

Fix pop-out bug (#8170)

parent 5a33789c
No related branches found
No related tags found
No related merge requests found
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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment