no more includes

This commit is contained in:
Brendan 2017-01-02 10:50:18 +01:00
parent 9fd04a6ec8
commit 13aff87b9b

View File

@ -23,7 +23,7 @@ let store
let storeData = {} let storeData = {}
// Check if store/index.js returns a vuex store // Check if store/index.js returns a vuex store
if (filenames.includes('./index.js')) { if (filenames.indexOf('./index.js') !== -1) {
let mainModule = getModule('./index.js') let mainModule = getModule('./index.js')
if (mainModule.commit) { if (mainModule.commit) {
store = mainModule store = mainModule