mirror of
https://github.com/zen-browser/desktop.git
synced 2026-09-14 08:51:54 +00:00
gh-15355: Fix folder unload TypeError by using String.includes (gh-15347)
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user