From 112e2f0ca9f24f1fe037f088d86e4a6b3d3c2000 Mon Sep 17 00:00:00 2001 From: sienori Date: Sat, 23 Dec 2017 03:26:15 +0900 Subject: [PATCH] Show option page in background when update --- simple-translate/background.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/simple-translate/background.js b/simple-translate/background.js index 3fdbdb4..9d6f1e1 100644 --- a/simple-translate/background.js +++ b/simple-translate/background.js @@ -3,8 +3,11 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ //初回起動時にオプションページを表示して設定を初期化 -browser.runtime.onInstalled.addListener(function(){ - browser.runtime.openOptionsPage(); +browser.runtime.onInstalled.addListener(function () { + browser.tabs.create({ + url: "options/options.html#information", + active: false + }); }); let S = new settingsObj()