From 9b82ab2394301b1be29e50e746d2357025815de7 Mon Sep 17 00:00:00 2001 From: Jonathan Kingston Date: Tue, 14 Feb 2017 19:11:06 +0000 Subject: [PATCH] Setting default tab page to about:newTab. Fixes: #184 --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 843d651..ab37202 100644 --- a/index.js +++ b/index.js @@ -3,6 +3,7 @@ * You can obtain one at http://mozilla.org/MPL/2.0/. */ const XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; +const DEFAULT_TAB = "about:newtab"; const HIDE_MENU_TIMEOUT = 300; @@ -504,7 +505,7 @@ const ContainerService = { userContextId = args.userContextId; } - const tab = browserWin.gBrowser.addTab(args.url || null, { userContextId }); + const tab = browserWin.gBrowser.addTab(args.url || DEFAULT_TAB, { userContextId }); browserWin.gBrowser.selectedTab = tab; browserWin.focusAndSelectUrlBar(); return true;