cancel
Showing results for 
Search instead for 
Did you mean: 

HTMLAnchorElement.download doest'n work in Oculus Browser

ClickONru
Honored Guest

Hi, guy's.

Perhaps someone has encountered this problem:
I'm trying to create a download link programmatically but have no success.
 How can this be fixed?

 

 

 

const json      =   JSON.stringify(someJson);
const blob      =   new Blob([json], {type: 'application/json'});
const url       =   URL.createObjectURL(blob);
const a         =   linkElement; // HTMLAnchorElement
a.href          =   url;
a.text          =   url.toString();
a.download      =   'some-file-name';

 

 

 

When i click on link nothing happened.
Without "download" property this link open like a document.

Thank you for help

1 REPLY 1

ClickONru
Honored Guest

i found "solution" - any files is downloading silently (without any warns for user).
I prefer for browser somehow warn me about any downloading. But in general its work.