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

Hotfix issue with nav-container attributes #604

Merged
merged 1 commit into from
Sep 14, 2016
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
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);
}
}