fix: loading a FITS file no longer resets footer, preserves current value and localStorage
This commit is contained in:
1 parent
0ea7306536
commit
6f3c36d90a
1 file changed
+2
-1
+2
-1
@@ -1328,7 +1328,8 @@ function makeFitsPlaceholderImage(meta) {
|
||||
function populateEditFields(meta, isFits) {
|
||||
fitsNotice.style.display = 'none';
|
||||
const savedFooter = localStorage.getItem('speccard_footer');
|
||||
if (!meta.footer) meta.footer = savedFooter || '@FateOfAstrophilia';
|
||||
const currentFooterVal = editFields.footer ? editFields.footer.value.trim() : '';
|
||||
if (!meta.footer) meta.footer = currentFooterVal || savedFooter || '@FateOfAstrophilia';
|
||||
if (!meta.header) meta.header = 'SPEC CARD';
|
||||
currentMeta = meta;
|
||||
Object.entries(editFields).forEach(([key, input]) => {
|
||||
|
||||
Reference in new issue
Block a user