diff options
author | 2017-11-08 09:56:59 +0100 | |
---|---|---|
committer | 2017-11-08 09:56:59 +0100 | |
commit | 46d70c093c315386ea20b9c6e88af099508fb522 (patch) | |
tree | 9e1148d98476f864903900e819b509dfe12a7f14 /src/components/services/content/Services.js | |
parent | fix(App): Prevent app from redirecting when dropping link (diff) | |
parent | feature(Service): Add webview crash handler to display a user friendly message (diff) | |
download | ferdium-app-46d70c093c315386ea20b9c6e88af099508fb522.tar.gz ferdium-app-46d70c093c315386ea20b9c6e88af099508fb522.tar.zst ferdium-app-46d70c093c315386ea20b9c6e88af099508fb522.zip |
feat(Service): Add crash handler to display a user friendly message
(@dannyqiu)
Diffstat (limited to 'src/components/services/content/Services.js')
-rw-r--r-- | src/components/services/content/Services.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/services/content/Services.js b/src/components/services/content/Services.js index 03c68b06f..bad525d22 100644 --- a/src/components/services/content/Services.js +++ b/src/components/services/content/Services.js | |||
@@ -25,6 +25,7 @@ export default class Services extends Component { | |||
25 | setWebviewReference: PropTypes.func.isRequired, | 25 | setWebviewReference: PropTypes.func.isRequired, |
26 | handleIPCMessage: PropTypes.func.isRequired, | 26 | handleIPCMessage: PropTypes.func.isRequired, |
27 | openWindow: PropTypes.func.isRequired, | 27 | openWindow: PropTypes.func.isRequired, |
28 | reload: PropTypes.func.isRequired, | ||
28 | }; | 29 | }; |
29 | 30 | ||
30 | static defaultProps = { | 31 | static defaultProps = { |
@@ -42,6 +43,7 @@ export default class Services extends Component { | |||
42 | handleIPCMessage, | 43 | handleIPCMessage, |
43 | setWebviewReference, | 44 | setWebviewReference, |
44 | openWindow, | 45 | openWindow, |
46 | reload, | ||
45 | } = this.props; | 47 | } = this.props; |
46 | const { intl } = this.context; | 48 | const { intl } = this.context; |
47 | 49 | ||
@@ -73,6 +75,7 @@ export default class Services extends Component { | |||
73 | handleIPCMessage={handleIPCMessage} | 75 | handleIPCMessage={handleIPCMessage} |
74 | setWebviewReference={setWebviewReference} | 76 | setWebviewReference={setWebviewReference} |
75 | openWindow={openWindow} | 77 | openWindow={openWindow} |
78 | reload={() => reload({ serviceId: service.id })} | ||
76 | /> | 79 | /> |
77 | ))} | 80 | ))} |
78 | </div> | 81 | </div> |