fix popout

This commit is contained in:
Simon Knott 2024-08-07 14:24:14 +02:00
parent b07d1a5ee6
commit 74439a8077
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -285,7 +285,7 @@ function snapshotScript(...targetIds: (string | undefined)[]) {
const context = canvas.getContext('2d');
context?.drawImage(img, 0, 0);
};
const url = new URL(window.location.href);
const url = new URL(unwrapPopoutUrl(window.location.href));
const index = url.pathname.lastIndexOf('/snapshot/');
if (index !== -1)
url.pathname = url.pathname.substring(0, index + 1);