Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
june07 committed Feb 7, 2025
1 parent 941df0a commit cd2cde3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "__MSG_appName__",
"version": "3.12.0",
"version": "3.12.1",
"default_locale": "en",
"description": "__MSG_appDescription__",
"author": "June07 <[email protected]> (https://june07.com/)",
Expand Down Expand Up @@ -78,7 +78,7 @@
]
},
"short_name": "__MSG_appShortName__",
"version_name": "3.12.0",
"version_name": "3.12.1",
"omnibox": {
"keyword": "about"
}
Expand Down
2 changes: 1 addition & 1 deletion src/sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ async function saveSession(params) {
state.sessions[sessionId] = newSession
// clean old sessions
Object.keys(state.sessions)
.filter(sessionId => sessionId.includes(newSession.sessionId.split(/\s/)[0]))
.filter(sessionId => sessionId !== newSession.sessionId && sessionId.includes(newSession.sessionId.split(/\s/)[0]))
.forEach(sessionId => delete state.sessions[sessionId])
chrome.storage.session.set({ sessions: state.sessions })
// if removeSessionOnTabRemoved is set to false then the session is saved until this point, now delete it.
Expand Down

0 comments on commit cd2cde3

Please sign in to comment.