Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
silesky committed Aug 25, 2023
1 parent 98f5b4e commit b1049d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions examples/standalone-playground/pages/index-consent.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@

<script src="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js" type="text/javascript"
data-domain-script="80ca7b5c-e72f-4bd0-972a-b74d052a0820-test"></script>
<script
src="/node_modules/@segment/analytics-consent-wrapper-onetrust/dist/bundled/analytics-onetrust.global.development.js">
</script>

<script>
const { searchParams } = new URL(document.location);
const writeKey = searchParams.get("writeKey");
Expand Down Expand Up @@ -86,17 +90,13 @@
}
analytics.SNIPPET_VERSION = '4.13.1'
analytics._writeKey = writeKey
withOneTrust(analytics).load()
analytics.page()
}
})()
}
</script>
<script
src="/node_modules/@segment/analytics-consent-wrapper-onetrust/dist/bundled/analytics-onetrust.global.development.js">
</script>
<script>
withOneTrust(analytics).load(writeKey)
</script>

</head>

<body>
Expand Down
2 changes: 1 addition & 1 deletion packages/consent/consent-wrapper-onetrust/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"!*.tsbuildinfo"
],
"scripts": {
".": "yarn run -T turbo run --filter=@segment/analytics-onetrust...",
".": "yarn run -T turbo run --filter=@segment/analytics-consent-wrapper-onetrust...",
"test": "yarn jest",
"lint": "yarn concurrently 'yarn:eslint .' 'yarn:tsc --noEmit'",
"build": "rm -rf dist && yarn concurrently 'yarn:build:*'",
Expand Down

0 comments on commit b1049d7

Please sign in to comment.