Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

please add script onError callback ! #112

Open
huyansheng3 opened this issue Mar 1, 2018 · 0 comments
Open

please add script onError callback ! #112

huyansheng3 opened this issue Mar 1, 2018 · 0 comments

Comments

@huyansheng3
Copy link

huyansheng3 commented Mar 1, 2018

  $script(url, function () {
      console.log('success');
    }, (error) => {
      console.log('error', error);
    })

i need the fail callback to give the user the information that something load fail!
but now it dont support !!

or maybe you can provider the event to us!

  $script(url, function (e) {
     if(e.type === 'error') {
          console.log('error')
     } else {
           console.log('success');
    }
    },)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant