Skip to content

Commit 3787b12

Browse files
authored
Merge pull request #5 from microsoft/dev/yonadiv/remove_duplicate_function
remove duplicate function
2 parents 8d0f7f4 + deefabe commit 3787b12

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

Frontend/src/index.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -20,26 +20,6 @@ function printFormattedAADErrorMessage(hashMessage: string): void {
2020
}
2121
}
2222

23-
function printFormattedAADErrorMessage(hashMessage: string): void {
24-
const hashString = hashMessage.slice(1);
25-
26-
// Decode URL encoding and parse key-value pairs
27-
const searchParams = new URLSearchParams(hashString);
28-
const formattedMessage: Record<string, string> = {};
29-
30-
searchParams.forEach((value, key) => {
31-
formattedMessage[key] = decodeURIComponent(value);
32-
});
33-
34-
// Print formatted message
35-
document.documentElement.innerHTML = "There was a problem with the consent, open browser debug console for more details";
36-
for (const key in formattedMessage) {
37-
if (Object.prototype.hasOwnProperty.call(formattedMessage, key)) {
38-
console.log(`${key}: ${formattedMessage[key]}`);
39-
}
40-
}
41-
}
42-
4323
/** This is used for authentication API as a redirect URI.
4424
* Delete this code if you do not plan on using authentication API.
4525
* You can change the redirectUriPath to whatever suits you.

0 commit comments

Comments
 (0)