Commit e0e21210 authored by Jannik Lehmann's avatar Jannik Lehmann

Remove obsolete DOMContentLoadedEventListener

parent 5dabb296
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