Skip to content

Commit

Permalink
Delete the hack of edgechromium's console and alert
Browse files Browse the repository at this point in the history
console and alert in edgechromium is well fixed, now you can use devtool.
  • Loading branch information
ODtian committed Jul 27, 2021
1 parent 823b1c1 commit 6aa8417
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 6aa8417

Please sign in to comment.