gh-15355: Fix folder unload TypeError by using String.includes (gh-15347)

This commit is contained in:
doruk
2026-09-11 10:37:37 +03:00
committed by GitHub
parent c89645a787
commit d54e12359c

View File

@@ -356,7 +356,7 @@ class nsZenPinnedTabManager extends nsZenDOMOperatedFeature {
alwaysUnload &&
["close", "reset", "switch", "reset-switch"].includes(behavior)
) {
behavior = behavior.contains("reset")
behavior = behavior.includes("reset")
? "reset-unload-switch"
: "unload-switch";
}