mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-07 00:50:27 +00:00
fix(webview): ignore load notifications from browser error documents
This commit is contained in:
1 parent
1776b05782
commit
2fd8a96c5d
4 files changed
+57
-5
No files matched your search
@@ -5,6 +5,8 @@ String buildWebViewEventScript(String channel) =>
|
||||
'''
|
||||
(() => {
|
||||
if (window !== window.top) return;
|
||||
// Browser error documents are reported by native load-error callbacks.
|
||||
if (location.protocol === 'chrome-error:') return;
|
||||
const pending = [];
|
||||
const flush = () => {
|
||||
const bridge = window.flutter_inappwebview;
|
||||
|
||||
Reference in new issue
Block a user