Show option page in background when update

This commit is contained in:
sienori 2017-12-23 03:26:15 +09:00
parent 77f7545772
commit 112e2f0ca9

View file

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