client/hippo/config.js in hippo-fw-0.9.1 vs client/hippo/config.js in hippo-fw-0.9.2

- old
+ new

@@ -1,18 +1,20 @@ -import { observable, autorun, observe } from 'mobx'; -import { keysIn, pick, assign, isString } from 'lodash'; +import { observable, observe } from 'mobx'; +import { keysIn, pick, assign, get } from 'lodash'; import Extensions from './extensions'; const STORAGE_KEY = 'hippo-user-data'; class Config { - @observable api_host = window.location.origin; + @observable api_host = get(window, 'location.origin', ''); @observable api_path = '/api'; @observable access_token; @observable root_view; @observable assets_path_prefix = '/assets'; @observable user; + @observable website_domain; + @observable product_name; @observable screens; constructor() { this.bootstrapUserData(); observe(this, 'user', ({ newValue }) => {