@fleetbase/ember-core 0.2.22 → 0.2.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -13,7 +13,7 @@ import getUserOptions from '../utils/get-user-options';
|
|
|
13
13
|
import config from 'ember-get-config';
|
|
14
14
|
|
|
15
15
|
if (isBlank(config.API.host)) {
|
|
16
|
-
config.API.host = `${window.location.protocol}//${window.location.hostname}
|
|
16
|
+
config.API.host = `${window.location.protocol}//${window.location.hostname}`;
|
|
17
17
|
}
|
|
18
18
|
const DEFAULT_ERROR_MESSAGE = 'Oops! Something went wrong. Please try again or contact support if the issue persists.';
|
|
19
19
|
export default class ApplicationAdapter extends RESTAdapter {
|
package/addon/services/fetch.js
CHANGED
|
@@ -19,7 +19,7 @@ import isEmptyObject from '../utils/is-empty-object';
|
|
|
19
19
|
import fetch from 'fetch';
|
|
20
20
|
|
|
21
21
|
if (isBlank(config.API.host)) {
|
|
22
|
-
config.API.host = `${window.location.protocol}//${window.location.hostname}
|
|
22
|
+
config.API.host = `${window.location.protocol}//${window.location.hostname}`;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
export default class FetchService extends Service {
|
package/package.json
CHANGED