mirror of
https://github.com/BewlyBewly/BewlyBewly.git
synced 2025-04-14 13:15:29 +00:00
fix: receive unread messages and moments without logging in
This commit is contained in:
@@ -69,6 +69,9 @@ export default defineComponent({
|
||||
})
|
||||
},
|
||||
async getUnreadMessageCount() {
|
||||
if (!this.isLogin)
|
||||
return
|
||||
|
||||
await browser.runtime
|
||||
.sendMessage({
|
||||
contentScriptQuery: 'getUnreadMsg',
|
||||
@@ -85,6 +88,9 @@ export default defineComponent({
|
||||
this.unReadmessageCount += parseInt(`${value}`)
|
||||
},
|
||||
getNewMomentsCount() {
|
||||
if (!this.isLogin)
|
||||
return
|
||||
|
||||
browser.runtime
|
||||
.sendMessage({
|
||||
contentScriptQuery: 'getNewMomentsCount',
|
||||
|
||||
Reference in New Issue
Block a user