Fix api prefix.

This commit is contained in:
Richard Lewis 2017-12-08 18:47:00 +00:00
parent a9ae4be74c
commit 24db57bfb6
2 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ class ScalarAuthClient {
getScalarPageTitle(url) {
const defer = Promise.defer();
let scalarPageLookupUrl = SdkConfig.get().integrations_rest_url + '/api/widgets/title_lookup';
let scalarPageLookupUrl = SdkConfig.get().integrations_rest_url + '/widgets/title_lookup';
scalarPageLookupUrl = this.getStarterLink(scalarPageLookupUrl);
scalarPageLookupUrl += '&curl=' + encodeURIComponent(url);
request({

View File

@ -198,7 +198,7 @@ export default React.createClass({
});
// Fetch page title from remote content if not already set
if (!this.state.widgetPageTitle) {
if (!this.state.widgetPageTitle && params.url) {
this._fetchWidgetTitle(params.url);
}
}, (err) => {