We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f9cef1 commit 98397d5Copy full SHA for 98397d5
src/utils/desktopTools.ts
@@ -4,7 +4,7 @@ const setupDesktopTools = () => {
4
const pwv: PyWebview | undefined = window.pywebview;
5
6
const isDesktop = (): boolean => {
7
- return !!pwv;
+ return document.body.getAttribute("data-pywebview-id") !== null;
8
}
9
10
const waitForPWV = (): Promise<void> => {
0 commit comments