mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Bug 1201017 - Remove array.includes() usage in nsBrowserGlue's urlbar telemetry. r=ttaubert
This commit is contained in:
parent
9c3e48627a
commit
f0eb4d4175
@ -530,8 +530,8 @@ BrowserGlue.prototype = {
|
||||
action.type;
|
||||
}
|
||||
if (!actionType) {
|
||||
let styles = controller.getStyleAt(idx).split(/\s+/);
|
||||
let style = ["autofill", "tag", "bookmark"].find(s => styles.includes(s));
|
||||
let styles = new Set(controller.getStyleAt(idx).split(/\s+/));
|
||||
let style = ["autofill", "tag", "bookmark"].find(s => styles.has(s));
|
||||
actionType = style || "history";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user