Safari update link and minor popup improvement

This commit is contained in:
Chris 2015-02-09 17:21:50 -07:00
parent 90b8ddf404
commit 0acb14c5a0
2 changed files with 6 additions and 3 deletions

View File

@ -14,7 +14,7 @@
<key>CFBundleVersion</key>
<string>{buildNumber}</string>
<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>
</array>
</dict>

View File

@ -431,8 +431,11 @@
// reload the popup when that is opened
safari.application.addEventListener('popover', function(e) {
e.target.contentWindow.document.body.textContent = '';
e.target.contentWindow.location.reload();
var w = e.target.contentWindow, body = w.document.body, child;
while(child = body.firstChild) {
body.removeChild(child);
}
w.location.reload();
}, true);
/******************************************************************************/