startup the study
This commit is contained in:
parent
e499ff5711
commit
54c598e22e
1 changed files with 11 additions and 1 deletions
12
study.js
12
study.js
|
@ -1,6 +1,8 @@
|
|||
const self = require("sdk/self");
|
||||
const shield = require("./lib/shield/index");
|
||||
const { when: unload } = require("sdk/system/unload");
|
||||
const tabs = require("sdk/tabs");
|
||||
|
||||
const shield = require("./lib/shield/index");
|
||||
|
||||
const studyConfig = {
|
||||
name: self.addonId,
|
||||
|
@ -17,15 +19,21 @@ const studyConfig = {
|
|||
|
||||
class ContainersStudy extends shield.Study {
|
||||
isEligible () {
|
||||
console.log("ContainersStudy.isEligible()");
|
||||
}
|
||||
|
||||
whenEligible () {
|
||||
console.log("ContainersStudy.whenEligible()");
|
||||
}
|
||||
|
||||
whenInstalled () {
|
||||
console.log("ContainersStudy.whenInstalled()");
|
||||
console.log("shield variation: ", this.variation);
|
||||
tabs.open(`data:text/html, Thank you for helping us study Containers in Firefox. You are in the ${this.variation} variation.`);
|
||||
}
|
||||
|
||||
cleanup(reason) {
|
||||
console.log("ContainersStudy.cleanup()");
|
||||
console.log(reason);
|
||||
}
|
||||
}
|
||||
|
@ -33,3 +41,5 @@ class ContainersStudy extends shield.Study {
|
|||
const thisStudy = new ContainersStudy(studyConfig);
|
||||
|
||||
unload((reason) => thisStudy.shutdown(reason));
|
||||
|
||||
thisStudy.startup(self.loadReason);
|
||||
|
|
Loading…
Add table
Reference in a new issue