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

greetings function should allow to return a promise #531

Closed
jcubic opened this issue Oct 12, 2019 · 0 comments
Closed

greetings function should allow to return a promise #531

jcubic opened this issue Oct 12, 2019 · 0 comments
Labels
feature resolved if issue is resolved, it will be open until merge with master

Comments

@jcubic
Copy link
Owner

jcubic commented Oct 12, 2019

I have idea for a new feature for jQuery Terminal

There should be a way to have:

      greetings: function() {
          var token = this.get_token();
          // this will not work
          return fetch(`service.php?action=greetings&token=${token}`).then(r => r.text());
      }

found code review for rejected PR #529

@jcubic jcubic changed the title greetings function should all to return a promise greetings function should allow to return a promise Oct 12, 2019
@jcubic jcubic added the feature label Oct 12, 2019
@jcubic jcubic added the resolved if issue is resolved, it will be open until merge with master label Oct 13, 2019
@jcubic jcubic closed this as completed Nov 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature resolved if issue is resolved, it will be open until merge with master
Projects
None yet
Development

No branches or pull requests

1 participant