Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fixing importing taglibrary in web edition #804

Ilian Sapundshiev6c377bf1668a
diff --git a/app/components/menus/TagLibraryMenu.js b/app/components/menus/TagLibraryMenu.js
index 1efeb77fd..cc26d117d 100644
--- a/app/components/menus/TagLibraryMenu.js
+++ b/app/components/menus/TagLibraryMenu.js
@@ -90,11 +90,11 @@ class TagLibraryMenu extends React.Component<Props, State> {
this.props.onClose();
this.setState({ dialogModeImport: true });
- if (AppConfig.isElectron) {
- this.fileInput.click();
- } else {
+ if (AppConfig.isCordovaAndroid && AppConfig.isCordovaiOS) {
// TODO Select directory or file from dialog
this.showSelectDirectoryDialog();
+ } else {
+ this.fileInput.click();
}
};