Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed auth btn, js func #58

Merged
merged 1 commit into from
Feb 15, 2024
Merged
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
4 changes: 2 additions & 2 deletions authenticator.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function logout() {
// remove access token from session storage
sessionStorage.removeItem("GCP_access_token");
// remove access token from gapi client
gapi.client.setToken(null);
// gapi.client.setToken(null);
// disable browse button
$("#browse_btn").hide();
// if logged out successfully, hide logout button && show authentication button
Expand All @@ -15,7 +15,7 @@ function logout() {
function onAuthenticated() {
console.log("onAuthenticated");
// set access token in gapi client for future requests
gapi.client.setToken({ access_token: getTokenFromSessionStorage() });
// gapi.client.setToken({ access_token: getTokenFromSessionStorage() });
const accessToken = getTokenFromSessionStorage();
if (accessToken) {
isAuthenticated = true;
Expand Down
1 change: 1 addition & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2667,6 +2667,7 @@ var getTree = function (treeData) {
$("#sents").show();
$(".toolbar").show();
$(".dropdown").show();
$("#auth_btn").show();
$("#conlluFileNameDiv").show();
view([$("#save_remote")], hideComponents);
maybeEnableSaveRemoteButton();
Expand Down