mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-13 03:29:46 +08:00
fix(react): React refuses to add partition
attr to webview
This commit is contained in:
parent
4f8ad70d60
commit
60d0d94b1b
1 changed files with 2 additions and 1 deletions
|
@ -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 (
|
||||
<div className="page authenticate">
|
||||
<webview ref="webview" partition="in-memory-only"></webview>
|
||||
<webview ref="webview"></webview>
|
||||
<div className={`webview-loading-spinner loading-${this.state.webviewLoading}`}>
|
||||
<RetinaImg
|
||||
style={{width: 20, height: 20}}
|
||||
|
|
Loading…
Reference in a new issue