mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
add experiment.js to the sdk
This commit is contained in:
parent
2947c723b8
commit
1043a72bd5
26
plugins/c9.ide.experiment/mock_experiment.js
Normal file
26
plugins/c9.ide.experiment/mock_experiment.js
Normal file
@ -0,0 +1,26 @@
|
||||
/**
|
||||
* Dummy implementation of experiments.
|
||||
*/
|
||||
"use strict";
|
||||
|
||||
plugin.consumes = [];
|
||||
plugin.provides = ["experiment"];
|
||||
|
||||
module.exports = plugin;
|
||||
|
||||
function plugin(options, imports, register) {
|
||||
|
||||
register(null, {
|
||||
"experiment": {
|
||||
configureExperiment: function() {},
|
||||
onStart: function() {
|
||||
var chain = {
|
||||
variation: function() {
|
||||
return chain;
|
||||
}
|
||||
}
|
||||
return chain;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user