async save() {
if (this.viewOnly) return;
if (this.handle === null) this.saveAs();
else {
const writableStream = await this.handle.createWritable();
try {
let csvContent = CsvHandle.from2D(sheet.df.data)
await writableStream.write(csvContent);
await writableStream.close();
sheet.df.isSaved = true;
sheet.refresh();
} catch (err) {
Msg.confirm(err);
}
}
}
nc_script.js:226 Uncaught (in promise) NotAllowedError: Failed to execute 'createWritable' on 'FileSystemFileHandle': The request is not allowed by the user agent or the platform in the current context.
ask the user to enable setting if occures