You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to use the code below to save something to local disk file,
constsaveFile=async(name: string,content: string)=>{printToConsole('start to save file');constblob=newBlob([content],{type: 'text/plain'});printToConsole(awaitblob.text());consta=document.createElement('a');printToConsole(a);a.href=URL.createObjectURL(blob);a.download=name+'.md';document.body.appendChild(a);a.click();document.body.removeChild(a);}
but it dost work.
Is this not supported or there are problems with the code?
The text was updated successfully, but these errors were encountered:
I tried to use the code below to save something to local disk file,
but it dost work.
Is this not supported or there are problems with the code?
The text was updated successfully, but these errors were encountered: