Apply new formatting

pull/65/head
Nikita Karamov 2023-07-14 22:27:58 +02:00
parent 625d5a02e5
commit 9977dde3c7
No known key found for this signature in database
GPG Key ID: 41D6F71EE78E77CD
2 changed files with 10 additions and 8 deletions

View File

@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />

View File

@ -71,25 +71,27 @@ const init = () => {
url: encodeURIComponent(
child.dataset.url ||
container.dataset.url ||
window.location.href
window.location.href,
),
title: encodeURIComponent(
child.dataset.title || container.dataset.title || document.title
child.dataset.title ||
container.dataset.title ||
document.title,
),
media: encodeURIComponent(
child.dataset.media || container.dataset.media || ""
child.dataset.media || container.dataset.media || "",
),
text: encodeURIComponent(
child.dataset.text || container.dataset.text || ""
child.dataset.text || container.dataset.text || "",
),
via: encodeURIComponent(
child.dataset.via || container.dataset.via || ""
child.dataset.via || container.dataset.via || "",
),
hashtags: encodeURIComponent(
child.dataset.hashtags || container.dataset.hashtags || ""
child.dataset.hashtags || container.dataset.hashtags || "",
),
fbAppId: encodeURIComponent(
child.dataset.fbAppId || container.dataset.fbAppId || ""
child.dataset.fbAppId || container.dataset.fbAppId || "",
),
};
const url = urlBuilderMap[cls](preset);