Skip to content

Commit

Permalink
Ignore blob URL on getting image info
Browse files Browse the repository at this point in the history
  • Loading branch information
genki committed Sep 12, 2023
1 parent f3c03e0 commit c6d413b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,9 @@ <h2 id="title"></h2>
let skip = false;

async function _getInfo(originalSrc) {
if (originalSrc.startsWith('blob:')) {
return undefined;
}
const url = new URL('/__image_info', location.href);
url.searchParams.set('url', originalSrc);
const res = await fetch(url);
Expand Down

0 comments on commit c6d413b

Please sign in to comment.