fix: handle frozen page lifecycle state (#1658)
This commit is contained in:
parent
f7a8d471a6
commit
32cfe6371f
10 changed files with 134 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
import { get } from 'idb-keyval'
|
||||
import { closeDatabases, get } from '../utils/elk-idb'
|
||||
import type { MastoNotification, NotificationInfo, PushPayload, UserLogin } from './types'
|
||||
|
||||
export const findNotification = async (
|
||||
|
@ -104,3 +104,7 @@ function htmlToPlainText(html: string) {
|
|||
return decodeURIComponent(html.replace(/<br\s*\/?>/g, '\n').replace(/<\/p><p>/g, '\n\n').replace(/<[^>]*>/g, ''))
|
||||
}
|
||||
*/
|
||||
|
||||
export function closeDatabaseConnections() {
|
||||
closeDatabases()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue