You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 16, 2022. It is now read-only.
People regularly have issues with a mint failing, and then losing the description they typed out. Two steps to fix this:
Set proper name on mint form elements. Currently they display name=input-name-not-set
Save form input in localStorage? Here's an untested snippet I've adapted from other work that could be applied once step 1 is taken.
var form_els = document.querySelectorAll('input, textarea');
if (localStorage.getItem('mint_'+form_els[0].name) != null) {
for (var i = 0; i < form_els.length; i++) {
var el = form_els[i];
el.value = localStorage.getItem('mint_'+el.name);
}
}
function saveForm() {
for (var i = 0; i < form_els.length; i++) {
var el = form_els[i];
localStorage.setItem('mint_'+el.name, el.value);
}
}
setInterval(saveForm, 5000);
function clearForm(){
for (var i = 0; i < form_els.length; i++) {
var el = form_els[i];
localStorage.setItem('mint_'+el.name, '');
el.value = '';
}
}
The text was updated successfully, but these errors were encountered:
People regularly have issues with a mint failing, and then losing the description they typed out. Two steps to fix this:
name
on mint form elements. Currently they displayname=input-name-not-set
The text was updated successfully, but these errors were encountered: