confirm, download

This commit is contained in:
James Campos 2011-09-17 14:35:38 -07:00
parent 120933865f
commit bb7b6c1c2b
2 changed files with 4 additions and 4 deletions

View File

@ -3008,8 +3008,8 @@
if (origin === 'http://sys.4chan.org') {
return qr.message(data);
} else {
if (data !== VERSION) {
return alert('new version of 4chan x available on github!');
if (data !== VERSION && confirm('a newer version of 4chan x is available, would you like to install it now?')) {
return window.location = 'https://github.com/aeosynth/4chan-x/raw/stable/4chan_x.user.js';
}
}
},

View File

@ -2358,8 +2358,8 @@ Main =
if origin is 'http://sys.4chan.org'
qr.message data
else
if data isnt VERSION
alert 'new version of 4chan x available on github!'
if data isnt VERSION and confirm 'a newer version of 4chan x is available, would you like to install it now?'
window.location = 'https://github.com/aeosynth/4chan-x/raw/stable/4chan_x.user.js'
css: '
/* dialog styling */