From 3ac2653443bfb7e1a423d808017a871286ddaeef Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Tue, 3 May 2022 14:27:47 -0500 Subject: [PATCH] Get config from prop instead of definition --- pages/apple-silicon-app-test.vue | 8 +++++++- src/pages/apple-silicon-app-test.astro | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/pages/apple-silicon-app-test.vue b/pages/apple-silicon-app-test.vue index 82477e5..98e9025 100644 --- a/pages/apple-silicon-app-test.vue +++ b/pages/apple-silicon-app-test.vue @@ -192,6 +192,12 @@ export default { LinkButton, AllUpdatesSubscribe }, + props: { + config: { + type: Object, + default: null + } + }, data: function () { return { query: '', @@ -295,7 +301,7 @@ export default { // Bring in code const { default: AppFilesScanner } = await import('~/helpers/app-files-scanner.js') - const testResultStore = isNuxt( this ) ? this.$config.testResultStore : global.$config.testResultStore + const testResultStore = this.config ? this.config.testResultStore : this.$config.testResultStore // Initialize instance this.scanner = new AppFilesScanner({ diff --git a/src/pages/apple-silicon-app-test.astro b/src/pages/apple-silicon-app-test.astro index 20a22fb..b6c190f 100644 --- a/src/pages/apple-silicon-app-test.astro +++ b/src/pages/apple-silicon-app-test.astro @@ -11,6 +11,7 @@ import AppTestPage from '~/pages/apple-silicon-app-test.vue' // Full Astro Component Syntax: // https://docs.astro.build/core-concepts/astro-components/ + ---