Skip to content

Commit

Permalink
edits
Browse files Browse the repository at this point in the history
  • Loading branch information
callebtc committed May 31, 2024
1 parent 97352c1 commit c07e4c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/components/iOSPWAPrompt.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
>
<div class="pwa-prompt-content">
<span
>Tap <q-icon name="ios_share" size="sm" /> and then
>Tap <q-icon name="ios_share" size="sm" /> and
<strong>Add to Home Screen</strong></span
>
<q-btn
Expand All @@ -29,8 +29,6 @@
</template>
<script>
import { defineComponent } from "vue";
import { mapActions, mapState } from "pinia";
import { useSettingsStore } from "stores/settings";
export default defineComponent({
name: "iOSPWAPrompt",
mixins: [windowMixin],
Expand Down
3 changes: 1 addition & 2 deletions src/pages/WalletPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,7 @@ export default {
},
triggerPwaInstall: function () {
// Show the install prompt
// Note: this doesn't work with IOS, we do it with iOSPWAPrompt
this.deferredPWAInstallPrompt.prompt();
// Wait for the user to respond to the prompt
this.deferredPWAInstallPrompt.userChoice.then((choiceResult) => {
Expand All @@ -520,8 +521,6 @@ export default {
console.log("User dismissed the install prompt");
}
});
// for IOS all this doesn't work so we need to hack it
},
registerBroadcastChannel: async function () {
// uses session storage to identify the tab so we can ignore incoming messages from the same tab
Expand Down

0 comments on commit c07e4c5

Please sign in to comment.