Apply new formatting
parent
625d5a02e5
commit
9977dde3c7
|
@ -1,4 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue