Commit d6745b1d69c58fc58e4b0758e25118240d90b48f
move key access to tabs
Gwen committed on 7/6/2017, 1:13:17 AMParent: bb3299ecd09a5c2bbffb33d40536307a561635a6
Files changed
modules/tabs.js | changed |
modules/tabs.js | ||
---|---|---|
@@ -81,11 +81,8 @@ | ||
81 | 81 … | tabs.insertBefore(h('div.header.left', |
82 | 82 … | h('div', |
83 | 83 … | h('a', {href: '#' + id}, img) |
84 | 84 … | ), |
85 | - h('p.edit', | |
86 | - h('a', {innerHTML: '<a href="#'+ id +'">Edit your profile</a> <a href="#Key"><img src="' + api.emoji_url('key') + '" class="emoji" /></a>'}) | |
87 | - ), | |
88 | 85 … | h('div.header__tabs', tabs.firstChild), //tabs |
89 | 86 … | h('div.header__search', h('div', search), api.menu()) |
90 | 87 … | ), tabs.firstChild) |
91 | 88 … | // tabs.insertBefore(search, tabs.firstChild.nextSibling) |
@@ -94,9 +91,9 @@ | ||
94 | 91 … | // try { saved = JSON.parse(localStorage.openTabs) } |
95 | 92 … | // catch (_) { } |
96 | 93 … | |
97 | 94 … | if(!saved || saved.length < 3) |
98 | - saved = ['Public', 'Direct', 'Mentions'] | |
95 … | + saved = ['Public', 'Direct', 'Mentions', 'Key'] | |
99 | 96 … | |
100 | 97 … | saved.forEach(function (path) { |
101 | 98 … | var el = api.screen_view(path) |
102 | 99 … | if(!el) return |
Built with git-ssb-web