Skip to content

Commit

Permalink
fix twitter embed and remove lil avatar for now
Browse files Browse the repository at this point in the history
  • Loading branch information
GraemeFulton committed May 8, 2024
1 parent c12e276 commit 56f6942
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion components/Editor/editorHooks/libs/addTwitterScript.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
export const addTwitterScript = () => {

if (!document.getElementById("twitter-widget")) {

const s = document.createElement("script");
s.setAttribute("src", "https://platform.twitter.com/widgets.js");
s.setAttribute("id", "twitter-widget");
s.setAttribute("async", "true");
s.setAttribute("defer", "true")

document.head.appendChild(s);
}
Expand Down
1 change: 1 addition & 0 deletions components/meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ export default function Meta({ seo, articleJsonLd, productJsonLd }) {

{/* CODEPEN AND TWITTER EMBED */}
{typeof window &&<script defer async="async" src="https://static.codepen.io/assets/embed/ei.js"></script>}
{typeof window &&<script defer async="async" src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>}

</>
);
Expand Down
6 changes: 3 additions & 3 deletions pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ const AppToaster = dynamic(() => {return import("@/components/AppToaster")},{ ss

import '../styles/index.scss'
import '../styles/toolStyles.css'
import PageViewTracker from "@/components/PageViewTracker";
import MakerPopover from "@/components/maker/maker";
// import PageViewTracker from "@/components/PageViewTracker";
// import MakerPopover from "@/components/maker/maker";

function App({ Component, pageProps: { session, ...pageProps } }) {

Expand Down Expand Up @@ -88,7 +88,7 @@ function App({ Component, pageProps: { session, ...pageProps } }) {
key={locale || "en-US"}
defaultLocale="en-US" locale={locale || "en-US"} messages={messages}>
<>
<MakerPopover/>
{/* <MakerPopover/> */}
{/* <PageViewTracker/> */}
<TopProgressBar/>
<SWRConfig
Expand Down

0 comments on commit 56f6942

Please sign in to comment.