Skip to content

Commit d0c2805

Browse files
authored
Remove cookie banner (#723)
1 parent 1e82d23 commit d0c2805

File tree

1 file changed

+8
-27
lines changed

1 file changed

+8
-27
lines changed

.storybook/manager-head.html

Lines changed: 8 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<link rel="shortcut icon" type="image/png" href="/favicon.png" />
2-
<div id="cookie-banner"></div>
32
<footer class="storybook-footer">
43
Microsoft Graph Toolkit Playground was founded by Microsoft as a community guided, open source project.
54
<a href="https://privacy.microsoft.com/en-us/privacystatement">Privacy & cookies</a>
@@ -9,37 +8,19 @@
98
<script src="https://consentdeliveryfd.azurefd.net/mscc/lib/v2/wcp-consent.js"></script>
109
<script src="https://az725175.vo.msecnd.net/scripts/jsll-4.js" type="text/javascript"></script>
1110
<script type="text/javascript">
12-
WcpConsent.init(
13-
'en-US',
14-
'cookie-banner',
15-
function(err, _siteConsent) {
16-
if (err != undefined) {
17-
return err;
18-
} else {
19-
siteConsent = _siteConsent; //siteConsent is used to get the current consent
20-
}
11+
var config = {
12+
autoCapture: {
13+
lineage: true
2114
},
22-
onConsentChanged
23-
);
24-
25-
function onConsentChanged(consentCategories) {
26-
console.log('consentCatogories', consentCategories);
27-
if (siteConsent.getConsentFor(WcpConsent.consentCategories.Analytics)) {
28-
// add analytics
29-
var config = {
30-
autoCapture: {
31-
lineage: true
32-
},
33-
coreData: {
34-
appId: 'JS:GraphToolkit'
35-
}
36-
};
37-
awa.init(config);
15+
coreData: {
16+
appId: 'JS:GraphToolkit'
3817
}
39-
}
18+
};
19+
awa.init(config);
4020
</script>
4121

4222
<style>
23+
/* this keeps the storybook body area above footer */
4324
#root > div:first-of-type {
4425
height: calc(100% - 40px);
4526
}

0 commit comments

Comments
 (0)