feat: setBadgeTextColor for firefox, hide hotkey setting for firefox

This commit is contained in:
DIYgod
2019-08-15 00:33:31 +08:00
parent ec974fd474
commit 740dd00105
2 changed files with 7 additions and 2 deletions
+4
View File
@@ -65,6 +65,10 @@ chrome.browserAction.setBadgeBackgroundColor({
color: '#FF2800',
});
chrome.browserAction.setBadgeTextColor && chrome.browserAction.setBadgeTextColor({
color: '#fff'
});
function setBadge (tabId) {
chrome.browserAction.setBadgeText({
text: config.notice.badge ? (((window.pageRSS[tabId].length + window.pageRSSHub[tabId].length) || (window.websiteRSSHub[tabId].length ? ' ' : '')) + '') : '',
+3 -2
View File
@@ -9,8 +9,8 @@
<div class="setting-input">
<el-input @change="saveConfig" v-model="config.rsshubDomain" placeholder="请输入你的 RSSHub 域名,留空使用官方域名"></el-input>
</div>
<div class="setting-name">快捷键</div>
<div class="setting-input">
<div class="setting-name" v-if="isChrome">快捷键</div>
<div class="setting-input" v-if="isChrome">
<el-button size="medium" @click="toHotkey">点此设置</el-button>
</div>
</div>
@@ -64,6 +64,7 @@ export default {
leftTime: '',
second: 0,
refreshDisabled: false,
isChrome: navigator.userAgent.indexOf('Chrome') !== -1,
}),
computed: {
percentage: function () {