start study.js

This commit is contained in:
groovecoder
2017-05-01 10:32:51 -05:00
parent 46b155c90f
commit cd03ea7a59
3 changed files with 37 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
const self = require("sdk/self");
const { shield } = require("./node_modules/shield-studies-addon-utils/lib/index");
const { when: unload } = require("sdk/system/unload");
const studyConfig = {
name: self.addonId,
days: 28,
surveyUrls: {
},
variations: {
"control": () => {},
"privacyOnboarding": () => {},
"onlineAccountsOnboarding": () => {},
"tabManagementOnboarding": () => {}
}
};
class ContainersStudy extends shield.Study {
isEligible () {
}
whenEligible () {
}
whenInstalled () {
}
cleanup(reason) {
console.log(reason);
}
}
const thisStudy = new ContainersStudy(studyConfig);
unload((reason) => thisStudy.shutdown(reason));