start shield study AFTER SDK starts the webext
This commit is contained in:
parent
54c598e22e
commit
b0c53063d2
2 changed files with 5 additions and 3 deletions
2
index.js
2
index.js
|
@ -60,7 +60,7 @@ const prefService = require("sdk/preferences/service");
|
||||||
const self = require("sdk/self");
|
const self = require("sdk/self");
|
||||||
const { Services } = require("resource://gre/modules/Services.jsm");
|
const { Services } = require("resource://gre/modules/Services.jsm");
|
||||||
const ss = require("sdk/simple-storage");
|
const ss = require("sdk/simple-storage");
|
||||||
const study = require("./study");
|
const { study } = require("./study");
|
||||||
const { Style } = require("sdk/stylesheet/style");
|
const { Style } = require("sdk/stylesheet/style");
|
||||||
const tabs = require("sdk/tabs");
|
const tabs = require("sdk/tabs");
|
||||||
const tabsUtils = require("sdk/tabs/utils");
|
const tabsUtils = require("sdk/tabs/utils");
|
||||||
|
|
6
study.js
6
study.js
|
@ -19,7 +19,9 @@ const studyConfig = {
|
||||||
|
|
||||||
class ContainersStudy extends shield.Study {
|
class ContainersStudy extends shield.Study {
|
||||||
isEligible () {
|
isEligible () {
|
||||||
console.log("ContainersStudy.isEligible()");
|
// If the user already has testpilot-containers extension, they are in the
|
||||||
|
// Test Pilot experiment, so exclude them.
|
||||||
|
return super.isEligible();
|
||||||
}
|
}
|
||||||
|
|
||||||
whenEligible () {
|
whenEligible () {
|
||||||
|
@ -42,4 +44,4 @@ const thisStudy = new ContainersStudy(studyConfig);
|
||||||
|
|
||||||
unload((reason) => thisStudy.shutdown(reason));
|
unload((reason) => thisStudy.shutdown(reason));
|
||||||
|
|
||||||
thisStudy.startup(self.loadReason);
|
exports.study = thisStudy;
|
||||||
|
|
Loading…
Add table
Reference in a new issue