mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1201017 - Remove array.includes() usage in nsBrowserGlue's urlbar telemetry. r=ttaubert
This commit is contained in:
parent
2905771b59
commit
fbd81f97df
@ -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