Extension application reloads after downloading file programatticaly
Extension application reloads after downloading file programatticaly
We're trying to create an excel file programatically and download within Symphony desktop application, however when this operation is performed the extension application reloads. Following snippet is for downloading a text file which also gives same behavior:
```javascript
download() {
var element = document.createElement('a');
element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent("This is a sample text"));
element.setAttribute('download', "Test.txt");
element.style.display = 'none';
document.body.appendChild(element);
element.click();
document.body.removeChild(element);
}
```
This issue is observed when file is downloaded for the first time. After that a download bar appears at the bottom and if the bar is there then next time app won't refresh. Though if the bar is removed then app reloads again.
Please note this issue is only observed in desktop app but works fine in Chrome browser.
We're trying to create an excel file programatically and download within Symphony desktop application, however when this operation is performed the extension application reloads. Following snippet is for downloading a text file which also gives same behavior:
```
download() {
var element = document.createElement('a');
element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent("This is a sample text"));
element.setAttribute('download', "Test.txt");
element.style.display = 'none';
document.body.appendChild(element);
element.click();
document.body.removeChild(element);
}
```
This issue is observed when file is downloaded for the first time. After that a download bar appears at the bottom and if the bar is there then next time app won't refresh. Though if the bar is removed then app reloads again.
Please note this issue is only observed in desktop app but works fine in Chrome browser.
#question
Extension application reloads after downloading file programatticaly
We're trying to create an excel file programatically and download within Symphony desktop application, however when this operation is performed the extension application reloads. Following snippet is for downloading a text file which also gives same behavior:
```
download() {
var element = document.createElement('a');
element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent("This is a sample text"));
element.setAttribute('download', "Test.txt");
element.style.display = 'none';
document.body.appendChild(element);
element.click();
document.body.removeChild(element);
}
```
This issue is observed when file is downloaded for the first time. After that a download bar appears at the bottom and if the bar is there then next time app won't refresh. Though if the bar is removed then app reloads again.
Please note this issue is only observed in desktop app but works fine in Chrome browser.