Skip to content

Commit

Permalink
adjust clear storage type variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
brendankenny committed Sep 29, 2016
1 parent bb6de4b commit 872c604
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lighthouse-core/gather/drivers/driver.js
Expand Up @@ -474,7 +474,8 @@ class Driver {
(parsedURL.port ? `:${parsedURL.port}` : '');

// Clear all types of storage except cookies, so the user isn't logged out.
const storageTypes = [
// https://chromedevtools.github.io/debugger-protocol-viewer/tot/Storage/#type-StorageType
const typesToClear = [
'appcache',
// 'cookies',
'file_systems',
Expand All @@ -487,8 +488,8 @@ class Driver {
].join(',');

return this.sendCommand('Storage.clearDataForOrigin', {
origin,
storageTypes,
origin: origin,
storageTypes: typesToClear
});
}

Expand Down

0 comments on commit 872c604

Please sign in to comment.