/* * This file is part of TbSync. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ "use strict"; var { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm"); var { TbSync } = ChromeUtils.import("chrome://tbsync/content/tbsync.jsm"); var tbSyncAccountManager = { onloadoptions: function () { window.close(); }, onunloadoptions: function () { TbSync.manager.openManagerWindow(0); }, onload: function () { TbSync.AccountManagerTabs = ["accounts.xhtml", "catman.xhtml", "supporter.xhtml", "help.xhtml"]; tbSyncAccountManager.selectTab(0); }, onunload: function () { TbSync.manager.prefWindowObj = null; }, selectTab: function (t) { const LOAD_FLAGS_NONE = Components.interfaces.nsIWebNavigation.LOAD_FLAGS_NONE; //set active tab (css selector for background color) for (let i=0; i