mirror of
https://github.com/Epicpkmn11/nftr-editor.git
synced 2025-06-18 13:55:35 -04:00
Always update file size on save
This commit is contained in:
parent
b4405b4869
commit
171565129b
@ -159,6 +159,9 @@ function saveFont() {
|
||||
fontU8.set(fontWidths[i], offset + (i * 3));
|
||||
}
|
||||
|
||||
// Update file size
|
||||
data.setUint32(0x8, fontU8.length, true);
|
||||
|
||||
// Download the file
|
||||
let blob = new Blob([fontU8], {type: "application/octet-stream"});
|
||||
let a = document.createElement("a");
|
||||
|
Loading…
Reference in New Issue
Block a user