Skip to content

Commit

Permalink
Add back expect error
Browse files Browse the repository at this point in the history
  • Loading branch information
outercloudstudio committed May 21, 2024
1 parent ffcbd9f commit e7501ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/App.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ import { InformationWindow } from '/@/components/Windows/Common/Information/Info
import { BottomPanel } from '/@/components/BottomPanel/BottomPanel'
import { SolidWindowManager } from './components/Solid/Window/Manager'
import { setupActions } from './components/Actions/Actions'
import { createNotification } from './components/Notifications/create'

if (import.meta.env.VITE_IS_TAURI_APP) {
// Import Tauri updater for native builds
Expand Down Expand Up @@ -276,7 +275,10 @@ export class App {
`--- Running bridge. ${appVersion} on a "${platform()}" machine ---`
)
console.time('[APP] beforeStartUp()')
if (navigator.clearAppBadge) navigator.clearAppBadge()
// @ts-expect-error
if (navigator.clearAppBadge)
// @ts-expect-error
navigator.clearAppBadge()

setupSidebar()
setupDefaultMenus(this)
Expand Down
2 changes: 2 additions & 0 deletions src/components/Notifications/Notification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ export class Notification {
}

protected updateAppBadge() {
// @ts-expect-error
if (typeof navigator.setAppBadge === 'function')
// @ts-expect-error
navigator.setAppBadge(
Object.values(NotificationStore).filter(
({ isVisible }) => isVisible
Expand Down

0 comments on commit e7501ae

Please sign in to comment.