mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Enable testResultStore in Astro
This commit is contained in:
parent
87789fdef1
commit
0d5ff89790
1 changed files with 5 additions and 2 deletions
|
|
@ -173,6 +173,7 @@
|
|||
|
||||
// import AppFilesScanner from '~/helpers/app-files-scanner.js'
|
||||
|
||||
import { isNuxt } from '~/helpers/environment.js'
|
||||
|
||||
import LinkButton from '~/components/link-button.vue'
|
||||
import AllUpdatesSubscribe from '~/components/all-updates-subscribe.vue'
|
||||
|
|
@ -292,12 +293,14 @@ export default {
|
|||
console.log('Initializing scanner instance')
|
||||
|
||||
// Bring in code
|
||||
const { default: AppFilesScanner} = await import('~/helpers/app-files-scanner.js')
|
||||
const { default: AppFilesScanner } = await import('~/helpers/app-files-scanner.js')
|
||||
|
||||
const testResultStore = isNuxt( this ) ? this.$config.testResultStore : global.$config.testResultStore
|
||||
|
||||
// Initialize instance
|
||||
this.scanner = new AppFilesScanner({
|
||||
observableFilesArray: this.appsBeingScanned,
|
||||
testResultStore: this.$config.testResultStore
|
||||
testResultStore
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue