Skip to content

Commit

Permalink
Fix issue with import not working && fix error on settings view due t…
Browse files Browse the repository at this point in the history
…o lack of cordova
  • Loading branch information
MarmadileManteater committed Mar 2, 2024
1 parent 0255c2d commit 3e05c9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/renderer/helpers/android.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ async function handleDialogResponse(promiseId) {
} else {
response = JSON.parse(response)
let typedUri = response?.uri
if (response?.type in FILE_TYPES && typedUri.indexOf('.') === -1) {
if (response?.type in FILE_TYPES) {
typedUri = `${typedUri}.${FILE_TYPES[response?.type]}`
}
return {
Expand Down Expand Up @@ -152,7 +152,7 @@ export function detectAmbiguousContent(content, filePath) {
const startsLikeJson = trimmedContent[0] === '{'
const startsLikeXml = trimmedContent[0] === '<'
const fileType = filePath.slice(filePath.lastIndexOf('.'), filePath.length)
const reportsOpml = fileType === 'opml'
const reportsOpml = fileType.endsWith('opml')
const type = startsLikeJson && reportsOpml
? 'db'
: startsLikeXml && reportsOpml
Expand Down
2 changes: 0 additions & 2 deletions src/renderer/views/Settings/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
<sponsor-block-settings />
<hr v-if="usingElectron">
<experimental-settings v-if="usingElectron" />
<hr v-if="usingCordova">
<cordova-settings v-if="usingCordova" />
<hr>
<password-settings />
</template>
Expand Down

0 comments on commit 3e05c9a

Please sign in to comment.