Welcome to mirror list, hosted at ThFree Co, Russian Federation.

experimental_flags.js « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: dbd3843cef7db90d2d02a55f8295721d4260a1dc (plain)
1
2
3
4
5
6
7
8
9
10
11
import Cookies from 'js-cookie';

export default () => {
  $('.js-experiment-feature-toggle').on('change', (e) => {
    const el = e.target;

    Cookies.set(el.name, el.value, {
      expires: 365 * 10,
    });
  });
};