UNPKG
magic-helper
Version:
latest (1.0.0)
1.0.0
this is magic helper
magic-helper
/
lib
/
h5
/
toScan.js
13 lines
(12 loc)
•
258 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
import
{ action }
from
'./action'
;
export
const
toScan
= (
config
) => {
const
{ targetUrl, fail } = config;
action
({
actionType
:
'scan'
, targetUrl }).
catch
(
(
err
) =>
{
if
(fail) {
fail
(err); } }); };