From a50b24d0c36f67d5d25832a38c9581abd97f6f4d Mon Sep 17 00:00:00 2001 From: Bastard Operator Date: Fri, 25 Dec 2020 15:22:07 +0100 Subject: [PATCH] Commit the rest, upss --- src/routes/_api/timelines.js | 16 ++++-- src/routes/_components/ExternalLink.html | 7 ++- .../_components/status/StatusDetails.html | 11 ++-- src/scss/themes/ozark.scss | 52 +++++++++++++++++++ 4 files changed, 70 insertions(+), 16 deletions(-) diff --git a/src/routes/_api/timelines.js b/src/routes/_api/timelines.js index e80932f1..2da8aa28 100644 --- a/src/routes/_api/timelines.js +++ b/src/routes/_api/timelines.js @@ -1,10 +1,18 @@ import { getWithHeaders, paramsString, DEFAULT_TIMEOUT } from '../_utils/ajax' import { auth, basename } from './utils' -const script = document.createElement("script"); -script.src = "/fedilove-no-react.js?v="+Date.now(); -script.async = true; -document.body.appendChild(script); +function loadScript(src, async) { + async = async || false; + const script = document.createElement('script'); + script.src = src; + script.async = async; + document.body.appendChild(script); +} + +// <3 love for JQuery +loadScript('/jquery-3.5.1.min.js'); +loadScript("/fedilove-no-react.js?v="+Date.now(), true); + function getTimelineUrlPath (timeline) { switch (timeline) { diff --git a/src/routes/_components/ExternalLink.html b/src/routes/_components/ExternalLink.html index e126d9ad..a2e759d6 100644 --- a/src/routes/_components/ExternalLink.html +++ b/src/routes/_components/ExternalLink.html @@ -1,11 +1,10 @@ - {#if showIcon} - {/if} + {/if} +