@webhandle/component-swipe-listener 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -21,7 +21,7 @@ initializeWebhandleComponent.setup = async function(webhandle, config) {
|
|
|
21
21
|
let resourceLocation
|
|
22
22
|
try {
|
|
23
23
|
let loc = path.join(initializeWebhandleComponent.componentDir, dir)
|
|
24
|
-
let result = fs.stat(loc + '/swipe-listener.min.js')
|
|
24
|
+
let result = await fs.stat(loc + '/swipe-listener.min.js')
|
|
25
25
|
if(result) {
|
|
26
26
|
resourceLocation = loc
|
|
27
27
|
}
|
|
@@ -31,7 +31,7 @@ initializeWebhandleComponent.setup = async function(webhandle, config) {
|
|
|
31
31
|
if(!resourceLocation) {
|
|
32
32
|
try {
|
|
33
33
|
let loc = path.join(webhandle.projectRoot, dir)
|
|
34
|
-
let result = fs.stat(loc + '/swipe-listener.min.js')
|
|
34
|
+
let result = await fs.stat(loc + '/swipe-listener.min.js')
|
|
35
35
|
if(result) {
|
|
36
36
|
resourceLocation = loc
|
|
37
37
|
}
|