gitlab-org--gitlab-foss/app/assets/javascripts/privacy_policy_update_callout.js
Dennis Tang 4f12a4dde1 Add support for deferred links in persistent user callouts
Persistent user callouts now support deferred links, which are links
that can be used to dismiss the callout, and then proceed to follow
the link's original location.

This ensures that the callout dismissal is properly recorded
before the user leaves the page.
2019-08-05 09:00:34 +00:00

8 lines
274 B
JavaScript

import PersistentUserCallout from '~/persistent_user_callout';
function initPrivacyPolicyUpdateCallout() {
const callout = document.querySelector('.privacy-policy-update-64341');
PersistentUserCallout.factory(callout);
}
export default initPrivacyPolicyUpdateCallout;