Skip to content
This repository has been archived by the owner on Mar 30, 2021. It is now read-only.

Commit

Permalink
Always show user information (thanks @se-bastiaan, fixes #151, fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
kbhomes committed May 14, 2014
1 parent 3100a9c commit b1b49ba
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions google-music-mac/js/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@ if (typeof window.GMNavigation === 'undefined') {
if (window.GoogleMusicApp.preferenceForKey("navigation.buttons.keep-links") == false)
{
// Obtain the area on the top-right, containing the Google account information.
var rightArea = document.querySelector('#oneGoogleWrapper > div:first-child > div:first-child > div:first-child');
var rightArea = document.querySelector('#oneGoogleWrapper > div:first-child > div:first-child > div:first-child > div:nth-child(2)');
rightArea.style.minWidth = 0;

// Remove all of the children.
while (rightArea.childNodes.length)
// Remove all of the children, except the last (the user button).
while (rightArea.childNodes.length > 1)
rightArea.removeChild(rightArea.childNodes[0]);
}

Expand Down

0 comments on commit b1b49ba

Please sign in to comment.