diff --git a/src/react-components/profile-entry-panel.js b/src/react-components/profile-entry-panel.js index cc20df8a4679475744f7c40f997f87b71d2b4daf..d0b3d053d4169a20b90adaea8eb546a3f5fb84f1 100644 --- a/src/react-components/profile-entry-panel.js +++ b/src/react-components/profile-entry-panel.js @@ -77,7 +77,8 @@ class ProfileEntryPanel extends Component { ref={inp => this.nameInput = inp}/> <iframe className="profile-entry__avatar-selector" - src={`avatar-selector.html#avatar_id=${this.state.avatar_id}`} + {/* HACK: Have to account for the smoke test server like this. Feels wrong though. */} + src={`${/smoke/i.test(location.hostname) ? 'smoke-' : ''}avatar-selector.html#avatar_id=${this.state.avatar_id}`} ref={ifr => this.avatarSelector = ifr}></iframe> <input className="profile-entry__form-submit" type="submit" value={formatMessage({ id: "profile.save" }) }/> </div>