Skip to content

Commit

Permalink
quick mac optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
amaheshwari01 committed Dec 11, 2023
1 parent 6d324c3 commit 7d760d1
Show file tree
Hide file tree
Showing 4 changed files with 578 additions and 32 deletions.
Binary file added .DS_Store
Binary file not shown.
9 changes: 4 additions & 5 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ function handleCallback(url) {
let code = (raw_code && raw_code.length > 1) ? raw_code[1] : null;
let error = /\?error=(.+)$/.exec(url);

// if (code || error) {
// // Close the browser if code found or error
// authWindow.destroy();
// }
if (code || error) {
// Close the browser if code found or error
authWindow.destroy();
}

if (code) {
// This is where you should send the code to your server to exchange for a access token
Expand All @@ -53,7 +53,6 @@ function handleCallback(url) {
redirect_uri: 'com.powerschool.portal://'
})
};
let output=""
fetch('https://oauth2.googleapis.com/token', options)
.then(response => response.json())
.then(response => {
Expand Down
Loading

0 comments on commit 7d760d1

Please sign in to comment.