Skip to content
Snippets Groups Projects
Unverified Commit d2784030 authored by futchitwo's avatar futchitwo Committed by GitHub
Browse files

fix(client): fix popout url (#8494)

parent 804fa335
No related branches found
No related tags found
No related merge requests found
......@@ -126,7 +126,7 @@ let changed = $ref(false);
useLeaveGuard($$(changed));
function showPreview() {
os.pageWindow('preview');
os.pageWindow('/preview');
}
function setBgColor(color: typeof bgColors[number]) {
......
import * as config from '@/config';
import { appendQuery } from './url';
export function popout(path: string, w?: HTMLElement) {
let url = path.startsWith('http://') || path.startsWith('https://') ? path : config.url + "/" + path;
url += '?zen';
let url = path.startsWith('http://') || path.startsWith('https://') ? path : config.url + path;
url = appendQuery(url, 'zen');
if (w) {
const position = w.getBoundingClientRect();
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