Skip to content

Commit

Permalink
[Android] Fix Get rid of capacitor-community/http
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelklehr committed Feb 8, 2022
1 parent 13f8315 commit 1512ba9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ui/components/native/FaviconImage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

<script>
import { getIcons } from '../../../lib/getFavicon'
import { Http } from '@capacitor-community/http'
import {Storage} from '@capacitor/storage'
export default {
Expand All @@ -36,8 +35,8 @@ export default {
return
}
try {
const res = await Http.get({url: this.url})
const icons = getIcons(res.data, res.url)
const res = await fetch(this.url)
const icons = getIcons(await res.text(), res.url)
this.src = icons[0]
await Storage.set({key, value: this.src})
} catch (e) {
Expand Down

0 comments on commit 1512ba9

Please sign in to comment.