Skip to content

Commit 98397d5

Browse files
committed
Better PWV Check
1 parent 8f9cef1 commit 98397d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/desktopTools.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const setupDesktopTools = () => {
44
const pwv: PyWebview | undefined = window.pywebview;
55

66
const isDesktop = (): boolean => {
7-
return !!pwv;
7+
return document.body.getAttribute("data-pywebview-id") !== null;
88
}
99

1010
const waitForPWV = (): Promise<void> => {

0 commit comments

Comments
 (0)