confirm, download
This commit is contained in:
parent
120933865f
commit
bb7b6c1c2b
@ -3008,8 +3008,8 @@
|
|||||||
if (origin === 'http://sys.4chan.org') {
|
if (origin === 'http://sys.4chan.org') {
|
||||||
return qr.message(data);
|
return qr.message(data);
|
||||||
} else {
|
} else {
|
||||||
if (data !== VERSION) {
|
if (data !== VERSION && confirm('a newer version of 4chan x is available, would you like to install it now?')) {
|
||||||
return alert('new version of 4chan x available on github!');
|
return window.location = 'https://github.com/aeosynth/4chan-x/raw/stable/4chan_x.user.js';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -2358,8 +2358,8 @@ Main =
|
|||||||
if origin is 'http://sys.4chan.org'
|
if origin is 'http://sys.4chan.org'
|
||||||
qr.message data
|
qr.message data
|
||||||
else
|
else
|
||||||
if data isnt VERSION
|
if data isnt VERSION and confirm 'a newer version of 4chan x is available, would you like to install it now?'
|
||||||
alert 'new version of 4chan x available on github!'
|
window.location = 'https://github.com/aeosynth/4chan-x/raw/stable/4chan_x.user.js'
|
||||||
|
|
||||||
css: '
|
css: '
|
||||||
/* dialog styling */
|
/* dialog styling */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user