diff --git a/simple-translate/background.js b/simple-translate/background.js index 52b0bf0..6651964 100644 --- a/simple-translate/background.js +++ b/simple-translate/background.js @@ -4,7 +4,9 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ //初回起動時にオプションページを表示して設定を初期化 -browser.runtime.onInstalled.addListener(function () { +browser.runtime.onInstalled.addListener((details) => { + if (details.reason != 'install' && details.reason != 'update') return; + browser.tabs.create({ url: "options/options.html#information", active: false