Skip to content

Commit

Permalink
Updated analytics script
Browse files Browse the repository at this point in the history
  • Loading branch information
remko48 committed Feb 13, 2024
1 parent 64885e2 commit a2aa1cf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pwa/gatsby-ssr.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const onRenderBody = ({ setHeadComponents, setPostBodyComponents }) => {
src={window.sessionStorage.getItem("ANALYTICS_URL")}
/>
) : (
<script key={0} id="analytics" async />
<script key={0} id="analytics" />
),
];
setHeadComponents(HeadComponents);
Expand Down
6 changes: 3 additions & 3 deletions pwa/src/hooks/htmlParser/anchor/getAnchor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import _ from "lodash";
import { Link } from "@utrecht/component-library-react/dist/css-module";
import { navigate } from "gatsby";
import { domToReact } from "html-react-parser";
import { TGitHubDirectory } from "../../useGitHubDirectories";
import { TMarkdownDirectory } from "../../useMarkdownDirectories";

export const getAnchor = (
props: any,
children: any,
options: any,
directories: TGitHubDirectory[],
directories: TMarkdownDirectory[],
location: string,
) => {
const conditions = ["://", "tel:", "mailto:"];
Expand Down Expand Up @@ -55,7 +55,7 @@ export const getAnchor = (
return <Link {...attributes}>{domToReact(children, options)}</Link>;
};

const handleInternalLinks = (props: any, targetFile: string, location: string, directories: TGitHubDirectory[]) => {
const handleInternalLinks = (props: any, targetFile: string, location: string, directories: TMarkdownDirectory[]) => {
// Internal Links: same directory
if (!props.href.includes("/")) {
const targetDirectory = _.upperFirst(location.split("/").reverse()[1]);
Expand Down
2 changes: 1 addition & 1 deletion pwa/src/styling/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
@import "../../node_modules/@nl-design-system-unstable/leidschendam-voorburg-design-tokens/dist/index.css";
@import "../../node_modules/@nl-design-system-unstable/nijmegen-design-tokens/dist/index.css";
@import "../../node_modules/@nl-design-system-unstable/noordoostpolder-design-tokens/dist/index.css";
@import "../../node_modules/@nl-design-system-unstable/provincie-zuid-holland-design-tokens/dist/index.css";
/* @import "../../node_modules/@nl-design-system-unstable/provincie-zuid-holland-design-tokens/dist/index.css"; */
/* @import "../../node_modules/@nl-design-system-unstable/riddeliemers-design-tokens/dist/index.css"; */ /* Import errors */
@import "../../node_modules/@nl-design-system-unstable/rotterdam-design-tokens/dist/index.css";
@import "../../node_modules/@nl-design-system-unstable/stedebroec-design-tokens/dist/index.css";
Expand Down

0 comments on commit a2aa1cf

Please sign in to comment.