Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V dai/clear state #1596

Merged
merged 5 commits into from
May 29, 2019
Merged

V dai/clear state #1596

merged 5 commits into from
May 29, 2019

Conversation

ivanov-dan
Copy link
Contributor

No description provided.

Copy link
Contributor

@justinwilaby justinwilaby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some small items to tighten up. Otherwise, it looks good.

message: 'You have successfully cleared state.',
title: 'Success!',
});
const { session } = require('electron');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although this is generally ok, we have established a pattern of placing requires at the top of the file using import. In this case it would be import * as electron from 'electron'; or import { session } from 'electron';

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

title: 'Success!',
});
const { session } = require('electron');
await new Promise(resolve => session.defaultSession.clearStorageData({}, resolve));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably go in at line 299.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a technical reason the user is notified before the storage data is cleared?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a scenario that @cwhitten requested.

@tonyanziano tonyanziano merged commit b4cca95 into master May 29, 2019
@tonyanziano tonyanziano deleted the v-dai/clearState branch May 29, 2019 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants