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

Fix #39 Widget asks for a domain name not a path #65

Closed
wants to merge 1 commit into from

Conversation

hoshin
Copy link

@hoshin hoshin commented Jun 20, 2016

  • Changed conf so that the conf asked limits itself to the relevant part
    (domain)
  • if /createSuggestion suffix is provided, even though not necessary
    anymore, it's not appended again
  • updated documentation to fit new behavior
  • added a default domain value that is set to 'http://localhost:3000'

* Changed conf so that the conf asked limits itself to the relevant part
  (domain)
* if /createSuggestion suffix is provided, even though not necessary
  anymore, it's not appended again
* updated documentation to fit new behavior
* added a default domain value that is set to 'http://localhost:3000'
@@ -11,7 +11,13 @@ class Ludwig {
this.branch = configuration.branch || 'master';
this.template = configuration.template;
this.prefix = configuration.prefix;
this.ludwigCreateSuggestionURL = configuration.ludwigCreateSuggestionURL;
const suggestionDomain = configuration.ludwigCreateSuggestionDomain? configuration.ludwigCreateSuggestionDomain : 'http://localhost:3000';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it be more debuggable to fail if it is not set, and ensure the defaults are set in the config itself?

@MattiSG
Copy link
Member

MattiSG commented Jun 2, 2017

Too old, closing.

@guillett if you want to revive this work, feel free to reopen.

@MattiSG MattiSG closed this Jun 2, 2017
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

Successfully merging this pull request may close these issues.

2 participants