Skip to content

Commit

Permalink
fix: window property
Browse files Browse the repository at this point in the history
  • Loading branch information
moughxyz committed May 17, 2022
1 parent 18e68ad commit 7f12f93
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/assets/javascripts/UIModels/ApplicationGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,7 @@ export class ApplicationGroup extends SNApplicationGroup<WebOrDesktopDevice> {
})

if (isDesktopApplication()) {
Object.defineProperty(window, 'webClient', {
get: () => (this.primaryApplication as WebApplication).getDesktopService(),
})
window.webClient = (this.primaryApplication as WebApplication).getDesktopService()
}
}

Expand Down

0 comments on commit 7f12f93

Please sign in to comment.