Commit 8ee0b087 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'jnnkl-eventlistener-tags-show' into 'master'

Remove obsolete DOMContentLoadedEventListener

See merge request gitlab-org/gitlab!53872
parents 5c648eb7 e0e21210
import { redirectTo, getBaseURL, stripFinalUrlSegment } from '~/lib/utils/url_utility'; import { redirectTo, getBaseURL, stripFinalUrlSegment } from '~/lib/utils/url_utility';
import { initRemoveTag } from '../remove_tag'; import { initRemoveTag } from '../remove_tag';
document.addEventListener('DOMContentLoaded', () => { initRemoveTag({
initRemoveTag({ onDelete: (path = '') => {
onDelete: (path = '') => { redirectTo(stripFinalUrlSegment([getBaseURL(), path].join('')));
redirectTo(stripFinalUrlSegment([getBaseURL(), path].join(''))); },
},
});
}); });
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment