Skip to content

Commit 114b4b0

Browse files
fix(static-site): prevent bookmarklet minification
1 parent f115916 commit 114b4b0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/static-site/src/pages/DataLayerGuide.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { FC } from "react";
22
import { Link } from "react-router-dom";
33
import { PagePaths } from "~/routes/config";
4-
import { watchDataLayer } from "~/utils/watchDataLayerBookmarklet";
4+
import { default as watchDataLayer } from "~/utils/watchDataLayerBookmarklet?raw";
55

66
export const bookmarklet = `javascript:(${watchDataLayer.toString()
77
// remove line breaks

packages/static-site/src/utils/watchDataLayerBookmarklet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const watchDataLayer = () => {
1+
() => {
22
const w = window
33
, dl = w.dataLayer || []
44
/* used to provide styling in the console */

0 commit comments

Comments
 (0)