code: function getBetterFileName(dataUrlType, itemName, format) {
    let name = itemName;
    const extension = "." + format;
    // Only add the extension if it's not already there.
    if (name.indexOf(extension) !== name.length - extension.length) {
      name = name + extension;
    }
    // For local files, the file already exists on the user's computer with the original name, so give it a modified name.
    if (dataUrlType === "local") {
      name = "processed " + name;
    }
    return name;
  }
docs: Return a nicer filename for this file.
  @private