diff --git a/src/css/content.scss b/src/css/content.scss index eebd751..8678241 100644 --- a/src/css/content.scss +++ b/src/css/content.scss @@ -4,6 +4,7 @@ } .moco-bx-bubble { + box-sizing: content-box; position: fixed; bottom: 2rem; z-index: 1000; diff --git a/src/js/components/App.js b/src/js/components/App.js index 78064d2..9ada49e 100644 --- a/src/js/components/App.js +++ b/src/js/components/App.js @@ -30,8 +30,7 @@ class App extends Component { subdomain: PropTypes.string, apiKey: PropTypes.string, version: PropTypes.string - }), - browser: PropTypes.object.isRequired + }) }; @observable projects = [] @@ -102,7 +101,7 @@ class App extends Component { this.lastTaskId = data.lastTaskId }) .catch(error => { - console.log(error) + this.sendMessage({ type: 'closeForm' }) }) .finally(() => { this.isLoading = false @@ -111,7 +110,7 @@ class App extends Component { createActivity = () => { this.isLoading = true - + this.#apiClient .createActivity(this.changesetWithDefaults) .then(({ data }) => { @@ -161,7 +160,7 @@ class App extends Component { } sendMessage = action => - this.props.browser.tabs.query( + chrome.tabs.query( { active: true, currentWindow: true }, tabs => chrome.tabs.sendMessage(tabs[0].id, action) ) @@ -172,14 +171,14 @@ class App extends Component { } const { service } = this.props; - + return ( <>