1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/public/js/stores/initalizer.js
2020-02-20 08:30:22 +01:00

18 lines
485 B
JavaScript

var FeatureToggleActions = require('./FeatureToggleActions');
var StrategyActions = require('./StrategyActions');
var Timer = require('../utils/Timer');
var _timer;
function load() {
FeatureToggleActions.init.triggerPromise();
StrategyActions.init.triggerPromise();
FeatureToggleActions.initArchive.triggerPromise();
}
module.exports = function(pollInterval) {
var intervall = pollInterval || 30;
_timer = new Timer(load, intervall*1000);
_timer.start();
};