INNER CODE UNIT · JavaScript

useContent

nisrulz/app-privacy-policy-generator · src/js/main.js:302

function useContent(state, wizard) {
  function _toggleModal(modalFlag) {
    if (!wizard.generate()) return;
    state.hasThirdPartyServicesSelected = wizard.checkForThirdPartyServicesEnabled();
    wizard.contentRenderType = 1;
    state[modalFlag] = !state[modalFlag];
  }

  function toggleNoTrackingPrivacyPolicyModalVisibility() {
    _toggleModal("showNoTrackingPrivacyPolicyModal");
  }

  function togglePrivacyModalVisibility() {
    _toggleModal("showPrivacyModal");
  }

  function toggleGDPRPrivacyModalVisibility() {
    _toggleModal("showGDPRPrivacyModal");

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…