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> <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>

View File

@ -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);
/******************************************************************************/ /******************************************************************************/