Bugfix+minor improvements

This commit is contained in:
Ace 2019-04-17 23:41:08 +02:00 committed by GitHub
parent eed4f110e4
commit e73da0fc62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -295,7 +295,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
a.href = link.href; a.href = link.href;
a.download = link.href.substr(link.href.lastIndexOf('/') + 1); a.download = link.href.substr(link.href.lastIndexOf('/') + 1);
document.body.appendChild(a); document.body.appendChild(a);
$(a).attr('download','setting.py'); $(a).attr('download','settings.py');
a.click(); a.click();
document.body.removeChild(a); document.body.removeChild(a);
} }