mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
[mv3-safari] Fix broken zapper due to latest changes
Related commit:
22e848c9c2
This commit is contained in:
parent
d17da2b081
commit
d3f39c97d1
1 changed files with 8 additions and 3 deletions
|
|
@ -395,10 +395,15 @@ const bootstrap = async ( ) => {
|
|||
zapperFramePort: port,
|
||||
});
|
||||
};
|
||||
frame.onload = ( ) => {
|
||||
if ( dynamicURL.protocol !== 'safari-web-extension:' ) {
|
||||
frame.onload = ( ) => {
|
||||
frame.onload = onZapperLoad;
|
||||
frame.contentWindow.location = dynamicURL.href;
|
||||
};
|
||||
} else {
|
||||
frame.onload = onZapperLoad;
|
||||
frame.contentWindow.location = dynamicURL.href;
|
||||
};
|
||||
frame.setAttribute('src', dynamicURL.href);
|
||||
}
|
||||
document.documentElement.append(frame);
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue