From 60d0d94b1b38304ff92013fd8ff635e1705e3316 Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Wed, 28 Sep 2016 11:08:34 -0700 Subject: [PATCH] fix(react): React refuses to add `partition` attr to webview --- internal_packages/onboarding/lib/page-authenticate.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal_packages/onboarding/lib/page-authenticate.jsx b/internal_packages/onboarding/lib/page-authenticate.jsx index 41ab31dfc..7497a7ee3 100644 --- a/internal_packages/onboarding/lib/page-authenticate.jsx +++ b/internal_packages/onboarding/lib/page-authenticate.jsx @@ -82,6 +82,7 @@ export default class AuthenticatePage extends React.Component { componentDidMount() { const webview = ReactDOM.findDOMNode(this.refs.webview); const n1Version = NylasEnv.getVersion(); + webview.partition = 'in-memory-only'; webview.src = `${IdentityStore.URLRoot}/onboarding?utm_medium=N1&utm_source=OnboardingPage&N1_version=${n1Version}`; webview.addEventListener('did-start-loading', this.webviewDidStartLoading); webview.addEventListener('did-get-response-details', this.webviewDidGetResponseDetails); @@ -151,7 +152,7 @@ export default class AuthenticatePage extends React.Component { render() { return (
- +