Skip to content

Commit

Permalink
falcon-ui: Removed unused Tabs event listener
Browse files Browse the repository at this point in the history
  • Loading branch information
jooohhn committed Aug 13, 2018
1 parent 0f3fe44 commit 51ef9c3
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions packages/falcon-ui/src/components/Tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,18 +313,6 @@ export default class Tab extends Component {
.addEventListener('click', () => {
chromeTabs.removeTab(el.querySelector('.chrome-tab-current'));
});

document
.querySelector('button[data-theme-toggle]')
.addEventListener('click', () => {
if (el.classList.contains('chrome-tabs-dark-theme')) {
document.documentElement.classList.remove('dark-theme');
el.classList.remove('chrome-tabs-dark-theme');
} else {
document.documentElement.classList.add('dark-theme');
el.classList.add('chrome-tabs-dark-theme');
}
});
}, 0);
}

Expand Down

0 comments on commit 51ef9c3

Please sign in to comment.