mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-21 07:26:15 +08:00
Handle Windows not having an appropriate app for SciNote Edit [SCI-9862]
This commit is contained in:
parent
1a8e9c48ad
commit
22b7424884
|
@ -37,7 +37,9 @@ export default {
|
|||
`${this.attachment.attributes.urls.open_locally_api}/default-application/${this.attachment.attributes.file_extension}`
|
||||
);
|
||||
|
||||
this.localAppName = response.data.application;
|
||||
if (response.data.application.toLowerCase() !== 'pick an app') {
|
||||
this.localAppName = response.data.application;
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Error in request: ', error);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue