Update dialog when bookmark version has a mismatch
This commit is contained in:
parent
5d016b4f7e
commit
48919ef36b
1 changed files with 2 additions and 1 deletions
|
|
@ -21,7 +21,8 @@ var pd = {
|
||||||
function checkBookmarkletVersion() {
|
function checkBookmarkletVersion() {
|
||||||
if (typeof window.bookmarkver === 'undefined' || window.bookmarkver !== pd.bookmarkver) {
|
if (typeof window.bookmarkver === 'undefined' || window.bookmarkver !== pd.bookmarkver) {
|
||||||
if (confirm('There\'s been an update to the bookmarklet. Would you like to go to the Github repo in order to get the latest version?')) {
|
if (confirm('There\'s been an update to the bookmarklet. Would you like to go to the Github repo in order to get the latest version?')) {
|
||||||
document.location.href = 'https://github.com/j0be/PowerDeleteSuite';
|
alert('Scroll down to the "Install PowerDeleteSuite" button on the github page. Replace your CURRENT bookmark with the one found there to upgrade.');
|
||||||
|
document.location.href = 'https://github.com/j0be/PowerDeleteSuite';
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue