mirror of
https://github.com/arfct/itty-bitty.git
synced 2026-03-11 08:54:33 +00:00
quick fix for double slash removal
This commit is contained in:
parent
77e1beab6f
commit
6553dd0f1c
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ export default async (request, context) => {
|
|||
}
|
||||
if (image) {
|
||||
if (image.startsWith("http")) {
|
||||
content += `<meta property="og:image" content="${image}"/>`;
|
||||
content += `<meta property="og:image" content="${image.replace(":/", "://")}"/>`;
|
||||
} else {
|
||||
image = decodeURIComponent(image)
|
||||
let codepoints = [];
|
||||
|
|
|
|||
Loading…
Reference in a new issue