Skip to content

Commit 479f9c5

Browse files
authored
Merge pull request #1676 from nextcloud/fix/welcome-systemInfo
fix(welcome): Cannot add property systemInfo, object is not extensible
2 parents 94f5be3 + d7439e7 commit 479f9c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/welcome/welcome.main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ if (__CHANNEL__ !== 'stable') {
1818
document.querySelector<HTMLDivElement>('.footer')!.textContent = __VERSION_TAG__
1919
}
2020

21-
window.TALK_DESKTOP.systemInfo = await window.TALK_DESKTOP.getSystemInfo() as { isMac: boolean }
21+
window.systemInfo = await window.TALK_DESKTOP.getSystemInfo()
2222

2323
quitButton.classList.remove('hidden')
24-
if (window.TALK_DESKTOP.systemInfo.isMac) {
24+
if (window.systemInfo.isMac) {
2525
quitButton.classList.add('quit_mac')
2626
}
2727

0 commit comments

Comments
 (0)