From 726a581addae43fdd01c2f21a40fec71dbf01abc Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Wed, 28 Dec 2022 15:08:03 +0100 Subject: [PATCH] refactor: use nuxt plugin to provide pwa helpers globally (#604) --- components/pwa/PwaBadge.client.vue | 8 ++------ components/pwa/PwaPrompt.client.vue | 10 +++------- config/pwa.ts | 4 +--- .../pwa/index.ts => plugins/pwa.client.ts | 16 +++++++++------- 4 files changed, 15 insertions(+), 23 deletions(-) rename composables/pwa/index.ts => plugins/pwa.client.ts (81%) diff --git a/components/pwa/PwaBadge.client.vue b/components/pwa/PwaBadge.client.vue index 5ab45c79..cd9ce608 100644 --- a/components/pwa/PwaBadge.client.vue +++ b/components/pwa/PwaBadge.client.vue @@ -1,13 +1,9 @@ - -