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

Commit

Permalink
Hotfix issue with nav-container attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwgillespie committed Sep 14, 2016
1 parent a87c9d9 commit 347ce3d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ This file should follow the standards specified on [keepachangelog.com](http://k
This project adheres to [Semantic Versioning](http://semver.org/).

## [unreleased]
### Fixed
* Hotfixed navigation bar issue causing crashes ([#604](https://github.com/radiant-player/radiant-player-mac/pull/604))

## [1.10.2] - 2016-08-19
### Fixed
Expand Down
9 changes: 7 additions & 2 deletions radiant-player-mac/js/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ if (typeof window.GMNavigation === 'undefined') {
buttonsContainer.parentNode.insertBefore(paddingElement, buttonsContainer);

// Adjust the drawer navigation scrolling mode to accomodate the traffic light buttons.
var el = document.querySelector('#drawer #nav-container');
if (el) el.setAttribute('mode', '');
var navContainer = document.querySelector('#drawer #nav-container');
if (navContainer) {
navContainer.removeAttribute('mode');
var mode = document.createAttribute('mode');
mode.value = '';
navContainer.setAttributeNode(mode);
}
}

1 comment on commit 347ce3d

@jypweb
Copy link

@jypweb jypweb commented on 347ce3d Sep 15, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You guys are awesome! Thanks so much for pushing this fix.

Please sign in to comment.