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"> <html lang="en">
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />

View File

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