Skip to content

Commit

Permalink
fix +
Browse files Browse the repository at this point in the history
  • Loading branch information
jsmsj committed Jul 8, 2022
1 parent a71fed3 commit a8ecfb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function getAllUrlParams(url) {
function get_auth_code(url){
dict = getAllUrlParams(url)
const all_perms = JSON.stringify(allpermutations(["https://www.googleapis.com/auth/drive","https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/iam"]))
scopes__ = JSON.stringify(decodeURIComponent(dict.scope).split("+"))
scopes__ = JSON.stringify(decodeURIComponent(dict.scope).split(" "))
if (all_perms.indexOf(scopes__) === -1){
var scope = false
}
Expand Down

0 comments on commit a8ecfb3

Please sign in to comment.