Code for Bibtex Export

The export function allows to export e.g. a paper's metadata into a bibtex file. I have found the code in fileInterface.js, where the file picker is initiated to enter location and name of the file. However, what I could not figure out is, where the data is actually written into the file that is created? Can you point me to the lines of code, please?

Could you, please, help me to find this code?

Thank you. Best, Christian.

This is an old discussion that has not been active in a long time. Instead of commenting here, you should start a new discussion. If you think the content of this discussion is still relevant, you can link to it from your new discussion.