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

Change UID to Email #23

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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
2 changes: 1 addition & 1 deletion chrome_extension/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ chrome.runtime.onMessage.addListener(
function(request, sender, sendResponse) {
chrome.storage.local.get('user_id', function(result) {
var user_id = result.user_id;
var newURL = "https://pause.trixster.xyz/profile.php?username=" + JSON.stringify(JSON.parse(user_id).uid);
var newURL = "https://pause.trixster.xyz/profile.php?username=" + JSON.stringify(JSON.parse(user_id).email);
chrome.tabs.update({
url: newURL
});;
Expand Down
2 changes: 1 addition & 1 deletion chrome_extension/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function timeStamp() {
// access the localstorage to get the user id,
// pass all the variables to the ajax url
chrome.storage.local.get('user_id', function(result) {
var user_id = '"'+JSON.parse(result.user_id).uid+'"';
var user_id = '"'+JSON.parse(result.user_id).email+'"';
var userName = JSON.parse(result.user_id).displayName;
var emailId = JSON.parse(result.user_id).email;
//alert(userName);
Expand Down