Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .hgignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# use regexp syntax
#-------------------
syntax: regexp

# use glob syntax
#----------------
syntax: glob

# Ignore Thumbs.db files
Thumbs.db


# Ignore log, backup and temporary files
*.log
*.tmp
*.bak

# Ignore node modules and builds
node_modules/
build/

# Ignore original and rejected files
*.rej
*.orig

14 changes: 14 additions & 0 deletions js/using_apis.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ dn.is_auth_error = function(err){
}

dn.api_error_to_string = function(err){

if(!err)
return "Error.";
var reason = ""
Expand All @@ -98,6 +99,19 @@ dn.api_error_to_string = function(err){
}

dn.handle_auth_error = function(err){

console.dir("ERROR: "+JSON.stringify(err));
if(!err.status.signed_in){
console.dir("ERROR user not signed in: "+JSON.stringify(err));

return dn.toggle_permission(true);


if(!err.status.google_logged_in){
dn.reauth_auto();
}
}

// this is the error handler for dn.pr_auth

dn.status.authorization = -1;
Expand Down
Loading