Do not display options page when updating firefox

This commit is contained in:
sienori 2018-06-03 01:57:05 +09:00
parent 7bb911a6e9
commit 738d7f0f6a

View file

@ -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