Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Skip app check for ringtools #32

Merged
merged 3 commits into from
Jul 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/components/InstalledApp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ import {TrashIcon} from '@bitcoin-design/bitcoin-icons-vue/filled/esm/index.js';

import delay from '../helpers/delay';

const skipCheckApps = ['bluewallet', 'ringtools'];

export default defineComponent({
components: {
TrashIcon,
Expand Down Expand Up @@ -162,7 +164,7 @@ export default defineComponent({
},
async pollOfflineApp() {
this.checkIfAppIsOffline = true;
if (this.id === 'bluewallet') this.checkIfAppIsOffline = false;
if (skipCheckApps.includes(this.id)) this.checkIfAppIsOffline = false;
pwltr marked this conversation as resolved.
Show resolved Hide resolved
while (this.checkIfAppIsOffline) {
try {
await window.fetch(this.url, {mode: 'no-cors'});
Expand Down
2 changes: 2 additions & 0 deletions src/views/AppStoreApp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,10 @@ function openApp(event: Event) {
}
return;
}
const skipCheckApps = ['bluewallet', 'ringtools'];
async function pollOfflineApp() {
checkIfAppIsOffline.value = true;
if (skipCheckApps.includes(app.value.id)) checkIfAppIsOffline.value = false;
while (checkIfAppIsOffline.value) {
try {
await window.fetch(url.value, {mode: 'no-cors'});
Expand Down