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