Skip to content

Commit

Permalink
Merge pull request #85 from IABTechLab/mkc-UID2-3820-cstg-iframe
Browse files Browse the repository at this point in the history
Test CSTG in an iframe
  • Loading branch information
mcollins-ttd authored Jul 23, 2024
2 parents 16e4538 + 9fb8486 commit ff484f2
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,19 @@
"webpack://@uid2/uid2-sdk/./*": "${webRoot}/*"
}
},
{
"name": "Launch CSTG in iframe (Chrome)",
"type": "chrome",
"request": "launch",
"url": "http://localhost:9190/iframe.html",
"webRoot": "${workspaceRoot}/",
"sourceMaps": true,
"preLaunchTask": "Start CSTG",
"postDebugTask": "Terminate CSTG",
"sourceMapPathOverrides": {
"webpack://@uid2/uid2-sdk/./*": "${webRoot}/*"
}
},
{
"name": "Launch CSTG Prebid Integration (Chrome)",
"type": "chrome",
Expand Down
10 changes: 10 additions & 0 deletions examples/cstg/html/iframe.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>UID2 Publisher Client-Side Integration Example using UID2 JavaScript SDK</title>
</head>
<body>
<iframe src="/index.html" width="1000" height="800"></iframe>
</body>
</html>
2 changes: 1 addition & 1 deletion examples/cstg/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<meta charset="UTF-8" />
<title>UID2 Publisher Client-Side Integration Example using UID2 JavsScript SDK</title>
<title>UID2 Publisher Client-Side Integration Example using UID2 JavaScript SDK</title>
<link rel="stylesheet" type="text/css" href="/stylesheets/app.css" />
<link rel="shortcut icon" href="/images/favicon.png" />
<script defer src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
Expand Down

0 comments on commit ff484f2

Please sign in to comment.