start study.js
This commit is contained in:
parent
46b155c90f
commit
cd03ea7a59
3 changed files with 37 additions and 0 deletions
1
index.js
1
index.js
|
@ -60,6 +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 { 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");
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
"htmllint-cli": "^0.0.5",
|
"htmllint-cli": "^0.0.5",
|
||||||
"jpm": "^1.2.2",
|
"jpm": "^1.2.2",
|
||||||
"npm-run-all": "^4.0.0",
|
"npm-run-all": "^4.0.0",
|
||||||
|
"shield-studies-addon-utils": "^2.0.0",
|
||||||
"stylelint": "^7.9.0",
|
"stylelint": "^7.9.0",
|
||||||
"stylelint-config-standard": "^16.0.0",
|
"stylelint-config-standard": "^16.0.0",
|
||||||
"stylelint-order": "^0.3.0",
|
"stylelint-order": "^0.3.0",
|
||||||
|
|
35
study.js
Normal file
35
study.js
Normal 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));
|
Loading…
Add table
Reference in a new issue