-
Is there a way to verify whether pywebview API is available or not? The I have attempted several types of checks and all have failed // Check if pywebview API and regulator function are available
const isPyWebviewAvailable = () => {
return window.pywebview?.api?.regulator instanceof Function;
}; and if (window.pywebview && window.pywebview.api && window.pywebview.api.regulator) { Related to #1459 |
Beta Was this translation helpful? Give feedback.
Answered by
r0x0r
Aug 29, 2024
Replies: 1 comment 1 reply
-
There is |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
sjehuda
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is
pywebviewready
DOM event that is fired right after API is ready