From b0e0ad18763a999cd3965a61fa7b6c7acddb8ae0 Mon Sep 17 00:00:00 2001 From: Thomas Brouard Date: Mon, 31 Oct 2016 16:45:11 +0100 Subject: [PATCH] .flash() flag defaults to true --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index a6409bc..baf8dfc 100644 --- a/index.js +++ b/index.js @@ -139,7 +139,7 @@ class Tab { } flash (flag) { - if (flag) { + if (flag !== false) { this.tab.classList.add("flash"); } else { this.tab.classList.remove("flash");