tests/android/webview/js/finish.js
raw| 1 | window.pywebview._createApi(JSON.parse('%(functions)s')); |
| 2 | |
| 3 | if (window.pywebview.platform == 'qtwebengine') { |
| 4 | new QWebChannel(qt.webChannelTransport, function(channel) { |
| 5 | window.pywebview._QWebChannel = channel; |
| 6 | window.dispatchEvent(new CustomEvent('pywebviewready')); |
| 7 | }); |
| 8 | } else { |
| 9 | window.dispatchEvent(new CustomEvent('pywebviewready')); |
| 10 | } |