diff options
author | Dominik Guzei <dominik.guzei@gmail.com> | 2019-08-09 11:14:30 +0200 |
---|---|---|
committer | Dominik Guzei <dominik.guzei@gmail.com> | 2019-08-09 11:14:30 +0200 |
commit | 9ede7021a8fabafc8c43183057fb8b7d440f6ebd (patch) | |
tree | 4b17d8dfc384f5c5dadb56fff0ace9cc16f26475 /src/features/todos/components | |
parent | send franz config to todos webview on init (diff) | |
download | ferdium-app-9ede7021a8fabafc8c43183057fb8b7d440f6ebd.tar.gz ferdium-app-9ede7021a8fabafc8c43183057fb8b7d440f6ebd.tar.zst ferdium-app-9ede7021a8fabafc8c43183057fb8b7d440f6ebd.zip |
Remove auth token url parameter
Diffstat (limited to 'src/features/todos/components')
-rw-r--r-- | src/features/todos/components/TodosWebview.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/features/todos/components/TodosWebview.js b/src/features/todos/components/TodosWebview.js index 819e599ca..d171bbd0a 100644 --- a/src/features/todos/components/TodosWebview.js +++ b/src/features/todos/components/TodosWebview.js | |||
@@ -75,7 +75,6 @@ const styles = theme => ({ | |||
75 | class TodosWebview extends Component { | 75 | class TodosWebview extends Component { |
76 | static propTypes = { | 76 | static propTypes = { |
77 | classes: PropTypes.object.isRequired, | 77 | classes: PropTypes.object.isRequired, |
78 | authToken: PropTypes.string.isRequired, | ||
79 | isVisible: PropTypes.bool.isRequired, | 78 | isVisible: PropTypes.bool.isRequired, |
80 | togglePanel: PropTypes.func.isRequired, | 79 | togglePanel: PropTypes.func.isRequired, |
81 | handleClientMessage: PropTypes.func.isRequired, | 80 | handleClientMessage: PropTypes.func.isRequired, |
@@ -166,7 +165,7 @@ class TodosWebview extends Component { | |||
166 | 165 | ||
167 | render() { | 166 | render() { |
168 | const { | 167 | const { |
169 | authToken, classes, isVisible, togglePanel, | 168 | classes, isVisible, togglePanel, |
170 | } = this.props; | 169 | } = this.props; |
171 | const { width, delta, isDragging } = this.state; | 170 | const { width, delta, isDragging } = this.state; |
172 | 171 | ||
@@ -206,7 +205,7 @@ class TodosWebview extends Component { | |||
206 | partition="persist:todos" | 205 | partition="persist:todos" |
207 | preload="./features/todos/preload.js" | 206 | preload="./features/todos/preload.js" |
208 | ref={(webview) => { this.webview = webview ? webview.view : null; }} | 207 | ref={(webview) => { this.webview = webview ? webview.view : null; }} |
209 | src={`${environment.TODOS_FRONTEND}?authToken=${authToken}`} | 208 | src={environment.TODOS_FRONTEND} |
210 | /> | 209 | /> |
211 | </div> | 210 | </div> |
212 | </> | 211 | </> |