[go: nahoru, domu]

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

core(entity-classification): classify chrome extensions into separate entities #15017

Merged
merged 14 commits into from
May 16, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fn name
  • Loading branch information
alexnj committed May 9, 2023
commit 15f7fc728b985a41c6889d32ff943f86881b7dd7
6 changes: 3 additions & 3 deletions core/computed/entity-classification.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ class EntityClassification {
/**
* @param {EntityCache} entityCache
* @param {string} url
* @param {string=} optionalName
* @param {string=} extensionName
* @return {LH.Artifacts.Entity}
*/
static makeupChromeExtensionEntity_(entityCache, url, optionalName) {
static makeupChromeExtensionEntity_(entityCache, url, extensionName) {
const origin = Util.getChromeExtensionOrigin(url);
const host = new URL(origin).host;
const name = optionalName || host;
const name = extensionName || host;

const cachedEntity = entityCache.get(origin);
if (cachedEntity) return cachedEntity;
Expand Down
Loading