diff --git a/src/Kernel/client/telemetry.ts b/src/Kernel/client/telemetry.ts index 6551900452..ce6fce366d 100644 --- a/src/Kernel/client/telemetry.ts +++ b/src/Kernel/client/telemetry.ts @@ -1,8 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -//[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="This function access is supposed to be public.")] -const CLIENT_INFO_API_URL = 'https://iqsharp-telemetry.azurewebsites.net/api/GetClientInfo?code=1kIsLwHdwLlH9n5LflhgVlafZaTH122yPK/3xezIjCQqC87MJrkdyQ=='; +const CLIENT_INFO_API_URL = 'https://iqsharp-telemetry.azurewebsites.net/api/GetClientInfo?'; const COOKIE_CONSENT_JS = 'https://wcpstatic.microsoft.com/mscc/lib/v2/wcp-consent.js'; @@ -89,11 +88,6 @@ class CookieConsentHelper { }); } - private onConsentChanged(categoryPreferences: Record) { - console.log("onConsentChanged", categoryPreferences); - this.checkRequiredConsent(); - } - private checkRequiredConsent() { const hasConsent = this.siteConsent.getConsentFor(ConsentCategories.Required); console.log(`HasConsent: ${hasConsent}`); @@ -127,7 +121,12 @@ class CookieConsentHelper { } else { console.log("Error initializing WcpConsent: " + err); } - }, this.onConsentChanged, window.matchMedia('prefers-color-scheme: dark').matches ? Themes.dark : Themes.light); + }, + (categoryPreferences: Record) => { + console.log("onConsentChanged", categoryPreferences); + this.checkRequiredConsent(); + }, + window.matchMedia('prefers-color-scheme: dark').matches ? Themes.dark : Themes.light); } } diff --git a/src/Tool/Untitled.ipynb b/src/Tool/Untitled.ipynb new file mode 100644 index 0000000000..0ae4f892a1 --- /dev/null +++ b/src/Tool/Untitled.ipynb @@ -0,0 +1,27 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": null, + "id": "5f3293d1", + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Q#", + "language": "qsharp", + "name": "iqsharp" + }, + "language_info": { + "file_extension": ".qs", + "mimetype": "text/x-qsharp", + "name": "qsharp", + "version": "0.26" + } + }, + "nbformat": 4, + "nbformat_minor": 5 +}