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

Commit

Permalink
Merge pull request #604 from radiant-player/hotfix-nav-bar
Browse files Browse the repository at this point in the history
Hotfix issue with nav-container attributes
  • Loading branch information
jacobwgillespie authored Sep 14, 2016
2 parents a87c9d9 + 347ce3d commit e13317c
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);
}
}

0 comments on commit e13317c

Please sign in to comment.