Skip to content

Commit

Permalink
chore(settings): Remove stateful active tab
Browse files Browse the repository at this point in the history
  • Loading branch information
tcrammond authored and shantanuraj committed Mar 25, 2019
1 parent 0769bea commit 7b71e18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/html/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</head>
<header>
<ul class="tab-links">
<li class="tab-link">General</li>
<li class="tab-link active">General</li>
<li class="tab-link">Pomodoro Timer</li>
<li class="tab-link">Integrations</li>
<li class="tab-link">Telemetry</li>
Expand Down Expand Up @@ -54,7 +54,7 @@
</div>
</div>
<div class="tabs">
<div class="tab tab-1">
<div class="tab tab-1 active">
<div class="fields">
<div class="field">
<div class="field__label">
Expand Down
4 changes: 0 additions & 4 deletions src/scripts/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -647,10 +647,6 @@ document.addEventListener('DOMContentLoaded', async function (e) {
db.set('show-permissions-info', 0);
}

// Change active tab.
const settingsActiveTab = await db.get('settings-active-tab', 0);
const activeTab = Number.parseInt(settingsActiveTab, 10);
changeActiveTab(activeTab);
document.querySelector('body').style.display = 'flex';

Settings.showPage();
Expand Down

0 comments on commit 7b71e18

Please sign in to comment.