Skip to content

Commit

Permalink
comment changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Aar-if committed Feb 22, 2024
1 parent 02833c7 commit ec5e783
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export const getProgramId = async (props) => {
{ headers }
)
if (programID?.data?.data) {
console.log(programID?.data?.data[0]?.programId)
localStorage.setItem('programID', programID?.data?.data[0]?.programId)
return programID?.data?.data[0]
}
Expand Down
2 changes: 0 additions & 2 deletions packages/players/content-player/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
previewElement.addEventListener("message", (event) => {
window?.top?.postMessage(event, "*");
alert("event");
console.log("On telemetryEvent", event);
});
};

Expand All @@ -37,7 +36,6 @@
window.addEventListener(
"message",
(event) => {
console.log(event);
passData(event?.data);
},
false
Expand Down
12 changes: 1 addition & 11 deletions packages/players/quml/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,11 @@
<script type="text/javascript">
// Need to pass the API URL to fetch the question set
window.questionListUrl = "https://vdn.diksha.gov.in/api/question/v1/list";
if (localStorage.getItem("console")) {
console.log("window?.name", window?.name);
}

if (window?.name) {
const data = JSON.parse(window?.name);
if (data?.questionListUrl) {
if (localStorage.getItem("console")) {
console.log("asd", data?.questionListUrl);
}
window.questionListUrl = data?.questionListUrl;
}
Expand All @@ -65,14 +62,7 @@
"player-config",
JSON.stringify(playerConfig)
);
// qumlPlayerElement.addEventListener("playerEvent", (event) => {
// console.log("On playerEvent", event);
// });

qumlPlayerElement.addEventListener("telemetryEvent", (event) => {
if (localStorage.getItem("console")) {
console.log("On telemetryEvent", event);
}
window?.parent?.postMessage(event?.detail, "*");
});

Expand Down

0 comments on commit ec5e783

Please sign in to comment.