update
This commit is contained in:
10
AzA/_internal/webview/js/finish.js
Normal file
10
AzA/_internal/webview/js/finish.js
Normal file
@@ -0,0 +1,10 @@
|
||||
window.pywebview._createApi(JSON.parse('%(functions)s'));
|
||||
|
||||
if (window.pywebview.platform == 'qtwebengine') {
|
||||
new QWebChannel(qt.webChannelTransport, function(channel) {
|
||||
window.pywebview._QWebChannel = channel;
|
||||
window.dispatchEvent(new CustomEvent('pywebviewready'));
|
||||
});
|
||||
} else {
|
||||
window.dispatchEvent(new CustomEvent('pywebviewready'));
|
||||
}
|
||||
Reference in New Issue
Block a user