mirror of https://github.com/gorhill/uBlock.git
Safari update link and minor popup improvement
This commit is contained in:
parent
90b8ddf404
commit
0acb14c5a0
|
@ -14,7 +14,7 @@
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>{buildNumber}</string>
|
<string>{buildNumber}</string>
|
||||||
<key>URL</key>
|
<key>URL</key>
|
||||||
<string>https://chrismatic.io/ublock/ublock-0.8.6.0.safariextz</string>
|
<string>https://chrismatic.io/ublock/ublock-latest.safariextz</string>
|
||||||
</dict>
|
</dict>
|
||||||
</array>
|
</array>
|
||||||
</dict>
|
</dict>
|
||||||
|
|
|
@ -431,8 +431,11 @@
|
||||||
|
|
||||||
// reload the popup when that is opened
|
// reload the popup when that is opened
|
||||||
safari.application.addEventListener('popover', function(e) {
|
safari.application.addEventListener('popover', function(e) {
|
||||||
e.target.contentWindow.document.body.textContent = '';
|
var w = e.target.contentWindow, body = w.document.body, child;
|
||||||
e.target.contentWindow.location.reload();
|
while(child = body.firstChild) {
|
||||||
|
body.removeChild(child);
|
||||||
|
}
|
||||||
|
w.location.reload();
|
||||||
}, true);
|
}, true);
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
Loading…
Reference in New Issue