mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-05-31 21:22:20 -05:00
Add warning about clearing cookies
Teams are stored in localStorage. Most browsers appear to clear localStorage as part of clearing cookies. Very often, users inadvertently delete their teams when they clear their cookies. This message will not prevent all instances of this, but it will at least decrease the chance of it happening.
This commit is contained in:
parent
66e9e78bf1
commit
e4917fa448
|
|
@ -308,6 +308,9 @@ function Teambuilder(id, elem)
|
|||
|
||||
text += '<button onclick="rooms[\''+selfR.id+'\'].formNew(event); return false"><i class="icon-plus-sign"></i> New team</button>';
|
||||
text += ' <button onclick="rooms[\''+selfR.id+'\'].formNew(event, true); return false"><i class="icon-upload-alt"></i> Import from PO</button> <button onclick="rooms[\''+selfR.id+'\'].formToggleBackup(event); return false"><i class="icon-upload-alt"></i> Backup/Restore</button>';
|
||||
|
||||
text += '<p><strong>Clearing your cookies will delete your teams.</strong> If you want to clear your cookies, you can use the Backup/Restore feature to save your teams as text first.</p>';
|
||||
|
||||
if (teams.length >= 2 && cookieTeams)
|
||||
{
|
||||
text += ' <strong>WARNING:</strong> Additional teams WILL NOT BE SAVED.';
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user