mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Fix rhymix alert keeping popping up
This commit is contained in:
parent
00dfd003f8
commit
f8336281c1
1 changed files with 4 additions and 4 deletions
|
|
@ -107,8 +107,8 @@
|
|||
setTimeout(rhymix_alert_close, delay);
|
||||
}
|
||||
else if(isSameOrigin(location.href, redirect_url)) {
|
||||
Cookies.set('rhymix_alert_message', message, { expires: 1 / 1440, path: '' });
|
||||
Cookies.set('rhymix_alert_delay', delay, { expires: 1 / 1440, path: '' });
|
||||
Cookies.set('rhymix_alert_message', message, { expires: 1 / 1440, path: '/' });
|
||||
Cookies.set('rhymix_alert_delay', delay, { expires: 1 / 1440, path: '/' });
|
||||
}
|
||||
else {
|
||||
alert(message);
|
||||
|
|
@ -118,8 +118,8 @@
|
|||
$(document).ready(function() {
|
||||
if(Cookies.get('rhymix_alert_message')) {
|
||||
rhymix_alert(Cookies.get('rhymix_alert_message'), null, Cookies.get('rhymix_alert_delay'));
|
||||
Cookies.remove('rhymix_alert_message', { path: '' });
|
||||
Cookies.remove('rhymix_alert_delay', { path: '' });
|
||||
Cookies.remove('rhymix_alert_message', { path: '/' });
|
||||
Cookies.remove('rhymix_alert_delay', { path: '/' });
|
||||
}
|
||||
$('#rhymix_alert').click(rhymix_alert_close);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue