Skip to content

Commit

Permalink
Merge pull request #752 from ODtian/master
Browse files Browse the repository at this point in the history
Delete the hack of edgechromium's console and alert
  • Loading branch information
r0x0r authored Aug 2, 2021
2 parents f0ddcb8 + 6aa8417 commit 26c9cae
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions webview/platforms/edgechromium.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,6 @@ def on_navigation_start(self, sender, args):
def on_navigation_completed(self, sender, args):
url = str(sender.Source)
self.url = None if self.ishtml else url
self.web_view.ExecuteScriptAsync('window.alert = (msg) => window.chrome.webview.postMessage(["alert", msg+"", ""])')

if _debug['mode']:
self.web_view.ExecuteScriptAsync('window.console = { log: (msg) => window.chrome.webview.postMessage(["console", msg+"", ""])}')

self.web_view.ExecuteScriptAsync(parse_api_js(self.pywebview_window, 'chromium'))

Expand Down

0 comments on commit 26c9cae

Please sign in to comment.